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 d4f3214 commit ac31bbaCopy full SHA for ac31bba
.github/workflows/publish.workflow.yml
@@ -16,7 +16,7 @@ jobs:
16
- name: Install Node.js
17
uses: actions/setup-node@v4
18
with:
19
- node-version: 18
+ node-version: 20
20
registry-url: 'https://registry.npmjs.org'
21
22
- name: Update NPM to latest
@@ -33,12 +33,13 @@ jobs:
33
- name: Build package
34
run: npm run build
35
36
+ - name: Create .npmrc
37
+ run: |
38
+ echo "registry=https://registry.npmjs.org/" > .npmrc
39
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" >> .npmrc
40
+
41
- name: NPM whoami
42
run: npm whoami
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
43
44
- name: Publish package
45
run: npm publish
0 commit comments