Skip to content

Commit c75f4cc

Browse files
Fix auth on npm publish (#1099)
* check NODE_AUTH_TOKEN is available or not Signed-off-by: msivasubramaniaan <[email protected]> * set NODE_AUTH_TOKEN --------- Signed-off-by: msivasubramaniaan <[email protected]>
1 parent 37543dc commit c75f4cc

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,8 @@ jobs:
4444
- name: Run Check-Dependencies
4545
run: yarn check-dependencies
4646

47-
- name: Check if NODE_AUTH_TOKEN is present
48-
run: |
49-
if [ -z "$NODE_AUTH_TOKEN" ]; then
50-
echo "NODE_AUTH_TOKEN is empty"
51-
exit 1
52-
else
53-
echo "NODE_AUTH_TOKEN is set (but not printing it)"
54-
fi
55-
env:
56-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN}}
47+
- name: Set Publish Auth
48+
run: yarn config set npmAuthToken $NODE_AUTH_TOKEN
5749

5850
#Publish to npm
5951
- name: Publish to npm

0 commit comments

Comments
 (0)