We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e890b3 commit 41ba5a2Copy full SHA for 41ba5a2
.github/workflows/publish.yaml
@@ -26,18 +26,16 @@ jobs:
26
- name: Navigate to npm directory
27
run: cd ./npm
28
29
- - name: Setup .npmrc file to publish to npm
30
- run: |
31
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
32
- env:
33
- NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
34
35
- - name: Verify .npmrc and Publish
+ - name: Publish
36
run: |
+ echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
37
if grep -qE "_authToken=.{1,}" .npmrc; then
38
npm publish
39
else
40
echo "Failed to create .npmrc file" && exit 1
41
fi
42
working-directory: ./npm
+ env:
+ NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
43
0 commit comments