Skip to content

Commit c4f8fd8

Browse files
committed
Fix auth token for NPM publish
1 parent a4422a7 commit c4f8fd8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

.github/workflows/publish-npm.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,10 @@ jobs:
8080
echo "exists=false" >> $GITHUB_OUTPUT
8181
echo "Version ${VERSION} does not exist, will publish"
8282
fi
83-
env:
84-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8583
8684
- name: Publish to NPM
8785
if: steps.check-exists.outputs.exists == 'false'
8886
run: npm publish --tag ${{ steps.version.outputs.tag }}
89-
env:
90-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9187

9288
- name: Update dist-tag (version already exists)
9389
if: steps.check-exists.outputs.exists == 'true' && github.ref_type == 'tag'
@@ -98,8 +94,6 @@ jobs:
9894
9995
echo "Version ${VERSION} already published, updating dist-tag to ${TAG}"
10096
npm dist-tag add "${PACKAGE_NAME}@${VERSION}" "${TAG}"
101-
env:
102-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10397
10498
- name: Skip (pre-release already exists)
10599
if: steps.check-exists.outputs.exists == 'true' && github.ref_type != 'tag'

0 commit comments

Comments
 (0)