File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed
Expand file tree Collapse file tree 3 files changed +17
-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 :
@@ -52,10 +56,16 @@ jobs:
5256 - name : lint
5357 run : npm run lint
5458 timeout-minutes : 5
55- - name : Release
59+ - name : 🚀 Release
5660 if : github.repository == 'testing-library/angular-testing-library' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta')
57- run : npx semantic-release
61+ uses : cycjimmy/semantic-release-action@v5
62+ with :
63+ semantic_version : 25
64+ working_directory : ' ./dist/@testing-library/angular'
65+ branches : |
66+ [
67+ 'main',
68+ {name: 'beta', prerelease: true},
69+ ]
5870 env :
5971 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