We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14232d3 commit 9de44a2Copy full SHA for 9de44a2
.github/workflows/release.yaml
@@ -40,10 +40,24 @@ jobs:
40
- name: Run Test
41
run: yarn test
42
43
- # Publish to npm
44
- - run: |
45
- yarn check-dependencies
46
- yarn publish --access public
+ # Check dependencies
+ - name: Run Check-Dependencies
+ run: yarn check-dependencies
+
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}}
57
58
+ #Publish to npm
59
+ - name: Publish to npm
60
+ run: yarn publish --access public
61
env:
62
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
63
0 commit comments