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 d032669 commit 39c76b9Copy full SHA for 39c76b9
1 file changed
.github/workflows/npm-publish-github-packages.yml
@@ -7,22 +7,29 @@ on:
7
8
permissions:
9
contents: read
10
- packages: write
+ id-token: write
11
12
jobs:
13
build:
14
+ name: Build and publish
15
runs-on: ubuntu-latest
16
+
17
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-node@v4
18
+ - name: Checkout
19
+ uses: actions/checkout@v6
20
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v6
23
with:
24
node-version: 20
25
registry-url: 'https://registry.npmjs.org'
- - run: npm ci
26
+ cache: "npm"
27
28
+ - name: Install dependencies
29
+ run: npm ci
30
31
- name: Build distribution
32
run: npm run build:dist
33
34
- name: Publish to npm
35
run: npm publish --access public
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments