We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c18dde commit 0669f09Copy full SHA for 0669f09
.github/workflows/release.yml
@@ -1,4 +1,4 @@
1
-name: Publish package
+name: Publish package to npmjs
2
3
on:
4
release:
@@ -9,11 +9,21 @@ jobs:
9
runs-on: ubuntu-latest
10
steps:
11
- uses: actions/checkout@v4
12
- - uses: actions/setup-node@v4
+
13
+ - name: Set up Node.js
14
+ uses: actions/setup-node@v4
15
with:
- registry-url: 'https://registry.npmjs.org'
16
+ node-version: 18
17
+ registry-url: "https://registry.npmjs.org"
18
+ cache: 'yarn'
19
20
+ - name: Prepare NPM credentials
21
+ run: |
22
+ echo "npmAuthToken: ${NODE_AUTH_TOKEN}" >> .yarnrc.yml
23
+ env:
24
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25
26
- run: yarn
27
28
- name: Publish to npm
- run: yarn publish
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29
+ run: yarn npm publish
0 commit comments