Use NODE_AUTH_TOKEN

This commit is contained in:
Tat Dat Duong
2023-06-23 00:51:51 +01:00
parent 15b8a8bf47
commit 71db4346ae
+1 -7
View File
@@ -19,13 +19,6 @@ jobs:
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: yarn install --frozen-lockfile
- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
@@ -33,4 +26,5 @@ jobs:
publish: yarn run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}