We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 644e5da commit f8c4644Copy full SHA for f8c4644
1 file changed
.github/workflows/publish.yml
@@ -22,8 +22,10 @@ jobs:
22
- name: Setup Node.js
23
uses: actions/setup-node@v4
24
with:
25
- node-version: '18'
26
- registry-url: 'https://registry.npmjs.org'
+ node-version: '20'
+
27
+ - name: Upgrade npm
28
+ run: npm install -g npm@latest
29
30
- name: Install dependencies
31
run: yarn install --frozen-lockfile
@@ -46,7 +48,11 @@ jobs:
46
48
47
49
- name: Publish to npm
50
if: steps.version_check.outputs.changed == 'true'
- run: npm publish --provenance --access public
51
+ run: |
52
+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
53
+ npm publish --provenance --access public
54
+ env:
55
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
56
57
- name: Create GitHub release
58
0 commit comments