File tree Expand file tree Collapse file tree 2 files changed +51
-1
lines changed
Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions : {}
9+
10+ jobs :
11+ release :
12+ name : Release
13+ runs-on : ubuntu-latest
14+ environment : npm
15+ concurrency :
16+ group : ${{ github.workflow }}
17+ cancel-in-progress : false
18+ permissions :
19+ contents : write
20+ pull-requests : write
21+ id-token : write
22+
23+ steps :
24+ - name : Checkout Repo
25+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
26+ with :
27+ # This makes Actions fetch all Git history so that Changesets can generate changelogs
28+ fetch-depth : 0
29+
30+ - name : Setup Node.js
31+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
32+ with :
33+ node-version : 22
34+ package-manager-cache : false
35+
36+ - name : Install Dependencies
37+ run : |
38+ npm i -g corepack npm@latest
39+ npm --version
40+ corepack enable
41+ pnpm install
42+
43+ - name : Create Release Pull Request or Publish to npm
44+ id : changesets
45+ uses : changesets/action@v1
46+ with :
47+ publish : pnpm run release
48+ env :
49+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1919 "check" : " biome check --write" ,
2020 "dev" : " rslib build --watch" ,
2121 "format" : " biome format --write" ,
22- "test" : " vitest"
22+ "test" : " vitest" ,
23+ "release" : " pnpm run build && pnpm changeset publish"
2324 },
2425 "devDependencies" : {
2526 "@biomejs/biome" : " 2.2.4" ,
You can’t perform that action at this time.
0 commit comments