Skip to content

Commit 36fe8f8

Browse files
authored
chore: add manual release option (#1194)
1 parent 8d5e7e8 commit 36fe8f8

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/manual-release.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,22 @@ jobs:
4949

5050
steps:
5151
- 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+
5257
- uses: actions/setup-node@v4
5358
with:
5459
node-version: 18
5560

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+
5668
- name: Install
5769
run: npm ci
5870

@@ -61,6 +73,7 @@ jobs:
6173

6274
- name: Release
6375
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 }}
6578
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
66-
run: npm run release:dry
79+
run: npm run release

0 commit comments

Comments
 (0)