Skip to content

Commit 16fa0b9

Browse files
authored
feat: set up changesets (#565)
1 parent f5c0b74 commit 16fa0b9

File tree

5 files changed

+897
-16
lines changed

5 files changed

+897
-16
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/ci.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,29 @@ jobs:
6161
- run: yarn build
6262
- run: yarn lint
6363
- run: yarn typecheck
64+
release:
65+
name: Run publish action
66+
if: ${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/main' || github.event.ref == 'refs/heads/next') }}
67+
needs: [lint, test-node, test-os]
68+
runs-on: ubuntu-latest
69+
steps:
70+
- name: Checkout Repo
71+
uses: actions/checkout@v3
72+
73+
- name: Setup Node.js
74+
uses: actions/setup-node@v3
75+
with:
76+
node-version: lts/*
77+
cache: yarn
78+
79+
- name: Install Dependencies
80+
run: yarn
81+
82+
- name: Create Release Pull Request or Publish to npm
83+
id: changesets
84+
uses: changesets/action@v1
85+
with:
86+
publish: yarn changeset publish
87+
env:
88+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@babel/cli": "^7.0.0",
3939
"@babel/core": "^7.0.0",
4040
"@babel/preset-env": "^7.14.7",
41+
"@changesets/cli": "^2.26.0",
4142
"@jest/expect-utils": "^29.0.0",
4243
"@types/jest": "^29.0.0",
4344
"@typescript-eslint/eslint-plugin": "^5.30.6",

0 commit comments

Comments
 (0)