Skip to content

Commit

Permalink
feat: set up changesets (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 18, 2023
1 parent f5c0b74 commit 16fa0b9
Show file tree
Hide file tree
Showing 5 changed files with 897 additions and 16 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -61,3 +61,29 @@ jobs:
- run: yarn build
- run: yarn lint
- run: yarn typecheck
release:
name: Run publish action
if: ${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/main' || github.event.ref == 'refs/heads/next') }}
needs: [lint, test-node, test-os]
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: yarn

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -38,6 +38,7 @@
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.14.7",
"@changesets/cli": "^2.26.0",
"@jest/expect-utils": "^29.0.0",
"@types/jest": "^29.0.0",
"@typescript-eslint/eslint-plugin": "^5.30.6",
Expand Down

0 comments on commit 16fa0b9

Please sign in to comment.