We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c519617 commit 898ad61Copy full SHA for 898ad61
.github/workflows/publish-npm.yaml
@@ -21,14 +21,10 @@ jobs:
21
uses: actions/setup-node@v4
22
with:
23
node-version: 20
24
+ registry-url: 'https://registry.npmjs.org'
25
+
26
+ - name: Update NPM
27
+ run: npm install -g npm@latest
28
29
- name: Publish to NPM
- run: |
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- if grep -qE "_authToken=.{1,}" .npmrc; then
- npm publish
30
- else
31
- echo "Failed to create .npmrc file" && exit 1
32
- fi
33
- env:
34
- NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
+ run: npm publish
0 commit comments