Skip to content

Commit 02746ba

Browse files
committed
fix: correct .npmrc creation and update npm token environment variable
1 parent 93af5d0 commit 02746ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
release:
1414
name: Release Package
1515
runs-on: ubuntu-latest
16+
environment: production
1617
steps:
1718
- name: Checkout code
1819
uses: actions/checkout@v4
@@ -57,12 +58,12 @@ jobs:
5758
- name: Creating .npmrc
5859
run: |
5960
cat << EOF > "$HOME/.npmrc"
60-
//registry.npmjs.org/:_authToken=$NPM_TOKEN
61+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
6162
EOF
6263
env:
6364
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6465

6566
- name: Publish packages to npm
6667
run: bun pm pack && npm publish ./*.tgz --access public
6768
env:
68-
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
69+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)