File tree Expand file tree Collapse file tree 1 file changed +29
-3
lines changed Expand file tree Collapse file tree 1 file changed +29
-3
lines changed Original file line number Diff line number Diff line change 11name : CI
2- on : [push]
2+ on :
3+ push :
4+ branches :
5+ - main
6+ pull_request : {}
7+
38jobs :
49 build :
510 runs-on : ubuntu-latest
@@ -23,12 +28,33 @@ jobs:
2328 run : |
2429 npm run ci
2530
31+ release :
32+ needs : [build]
33+ runs-on : ubuntu-latest
34+ if : success() && github.ref == 'refs/heads/main'
35+ permissions :
36+ id-token : write
37+ environment :
38+ name : npm
39+ steps :
40+ - name : Checkout
41+ uses : actions/checkout@v4
42+
43+ - name : Setup Node 22
44+ uses : actions/setup-node@v4
45+ with :
46+ node-version : 22.x
47+
48+ - name : Install dependencies
49+ run : |
50+ npm install -g npm@latest
51+ npm install
52+ npm install --workspaces
53+
2654 - name : Release
2755 id : changesets
28- if : github.ref == 'refs/heads/main'
2956 uses : changesets/action@v1
3057 with :
3158 publish : npm run release
3259 env :
3360 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments