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 4bc0d65 commit e8fa777Copy full SHA for e8fa777
.github/workflows/publish.yml
@@ -6,6 +6,12 @@ on:
6
- 'v*'
7
workflow_dispatch:
8
9
+permissions:
10
+ # Enable reading repository contents (allows checkout without token)
11
+ contents: read
12
+ # Enable the use of OIDC for trusted publishing and npm provenance
13
+ id-token: write
14
+
15
jobs:
16
publish:
17
runs-on: ubuntu-latest
@@ -21,10 +27,11 @@ jobs:
21
27
scope: '@doist'
22
28
registry-url: 'https://registry.npmjs.org/'
23
29
30
+ - name: Ensure npm 11.5.1 or later is installed
31
+ run: npm install -g npm@latest
32
24
33
- name: Install dependencies
25
34
run: npm ci
26
35
36
- name: Publish package
- run: npm publish
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
37
+ run: npm publish --provenance --access public
0 commit comments