File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,22 @@ jobs:
49
49
50
50
steps :
51
51
- uses : actions/checkout@v4
52
+ with :
53
+ # This parameter is required to make sure sematic-relase exactly use the provided GitHub Token
54
+ # See https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions#pushing-package.json-changes-to-your-repository
55
+ persist-credentials : false
56
+
52
57
- uses : actions/setup-node@v4
53
58
with :
54
59
node-version : 18
55
60
61
+ - name : Configure npm
62
+ run : |
63
+ echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
64
+ cat .npmrc
65
+ env :
66
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
67
+
56
68
- name : Install
57
69
run : npm ci
58
70
61
73
62
74
- name : Release
63
75
env :
64
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76
+ # GH_TOKEN is maintained in the repository secrets. See RELEASE.md for more information.
77
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
65
78
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
66
- run : npm run release:dry
79
+ run : npm run release
You can’t perform that action at this time.
0 commit comments