Skip to content

Commit 65fa0da

Browse files
chore: add npm auth configuration step to semantic-release workflow
1 parent a31119d commit 65fa0da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/semantic-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
env:
3232
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3333

34+
- name: Configure npm auth for semantic-release
35+
run: |
36+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > "${NPM_CONFIG_USERCONFIG:-$HOME/.npmrc}"
37+
env:
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
3440
- uses: cycjimmy/semantic-release-action@v4
3541
with:
3642
semantic_version: 24

0 commit comments

Comments
 (0)