34
34
35
35
create-release :
36
36
needs : build
37
- name : Semantic- Release
37
+ name : Semantic Release
38
38
if : " github.ref_name == 'main' && github.event_name != 'pull_request'"
39
39
runs-on : ubuntu-latest
40
40
permissions :
@@ -43,18 +43,11 @@ jobs:
43
43
pull-requests : write # to be able to comment on released pull requests
44
44
id-token : write # to enable use of OIDC for npm provenance
45
45
steps :
46
- - name : Create GitHub token
47
- uses : actions/create-github-app-token@v1
48
- id : app-token
49
- with :
50
- app-id : ${{ vars.CI_APP_ID }}
51
- private-key : ${{ secrets.CI_PRIVATE_KEY }}
52
46
- name : Checkout repository
53
47
uses : actions/checkout@v4
54
48
with :
55
- token : ${{ steps.app-token.outputs.token }}
56
- fetch-depth : 0 # for fetching tags, required for semantic-release
57
49
persist-credentials : false
50
+ fetch-depth : 0 # for fetching tags, required for semantic-release
58
51
- name : Setup Node.js
59
52
uses : actions/setup-node@v4
60
53
with :
69
62
npm install
70
63
- name : Verify the integrity of provenance attestations and registry signatures
71
64
run : npm audit signatures
65
+ - name : Create GitHub token
66
+ uses : actions/create-github-app-token@v1
67
+ id : app-token
68
+ with :
69
+ app-id : ${{ vars.CI_APP_ID }}
70
+ private-key : ${{ secrets.CI_PRIVATE_KEY }}
72
71
- name : Run semantic-release
73
72
env :
74
- GH_TOKEN : ${{ steps.app-token.outputs.token }}
73
+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
75
74
run : npm run semantic-release
0 commit comments