File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed
Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 88 pull_request : {}
99 workflow_dispatch :
1010
11- permissions : {}
11+ permissions :
12+ id-token : write
1213
1314concurrency :
1415 group : ${{ github.workflow }}-${{ github.ref }}
@@ -17,8 +18,11 @@ concurrency:
1718jobs :
1819 build_test_release :
1920 permissions :
20- actions : write
21- contents : write
21+ id-token : write # to enable use of OIDC (npm trusted publishing and provenance)
22+ actions : write # to cancel/stop running workflows (styfle/cancel-workflow-action)
23+ contents : write # to create release tags (cycjimmy/semantic-release-action)
24+ issues : write # to post release that resolves an issue (cycjimmy/semantic-release-action)
25+ pull-requests : write # to be able to comment on released pull requests
2226
2327 strategy :
2428 matrix :
3236 uses : actions/setup-node@v4
3337 with :
3438 node-version : ${{ matrix.node-version }}
39+ registry-url : ' https://registry.npmjs.org'
3540 - name : install
3641 run : npm install --force
3742 - name : build
@@ -52,10 +57,16 @@ jobs:
5257 - name : lint
5358 run : npm run lint
5459 timeout-minutes : 5
55- - name : Release
60+ - name : 🚀 Release
5661 if : github.repository == 'testing-library/angular-testing-library' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta')
57- run : npx semantic-release
62+ uses : cycjimmy/semantic-release-action@v5
63+ with :
64+ semantic_version : 25
65+ working_directory : ' ./dist/@testing-library/angular'
66+ branches : |
67+ [
68+ 'main',
69+ {name: 'beta', prerelease: true},
70+ ]
5871 env :
5972 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
61- CI : true
Original file line number Diff line number Diff line change 8181 "ng-packagr" : " 21.0.0" ,
8282 "prettier" : " 2.6.2" ,
8383 "rimraf" : " ^6.1.0" ,
84- "semantic-release" : " ^25.0.1" ,
8584 "typescript" : " 5.9.3" ,
8685 "typescript-eslint" : " ^8.46.3" ,
8786 "vitest" : " 4.0.15"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments