We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3b81a1 + d9c6661 commit 5c3c69dCopy full SHA for 5c3c69d
.github/workflows/publish.yml
@@ -9,6 +9,10 @@ concurrency:
9
group: ${{ github.workflow }}
10
cancel-in-progress: false
11
12
+permissions:
13
+ id-token: write # Required for OIDC to publish to NPM
14
+ contents: read
15
+
16
jobs:
17
check:
18
name: Lint
@@ -31,7 +35,9 @@ jobs:
31
35
- uses: actions/setup-node@v4
32
36
with:
33
37
cache: yarn
38
+ registry-url: 'https://registry.npmjs.org'
34
39
- run: yarn install --frozen-lockfile
- - run: yarn publish --verbose --access public
- env:
- YARN_AUTH_TOKEN: ${{secrets.NPM_JS_YOASTBOT_PUBLISH_ACCESS_TOKEN}}
40
+ # Ensure npm 11.5.1 or later is installed - this is needed for OIDC support
41
+ - name: Update npm
42
+ run: npm install -g npm@latest
43
+ - run: npm publish --verbose --access public
0 commit comments