Skip to content

Commit 9d2768a

Browse files
committed
Update this workflow.
1 parent 610a372 commit 9d2768a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ on:
88
- '*'
99
workflow_dispatch:
1010

11-
permissions:
12-
contents: read
13-
id-token: write
11+
permissions: {}
1412

1513
jobs:
1614
build:
1715
runs-on: ubuntu-latest
1816
timeout-minutes: 10
17+
permissions:
18+
contents: read
19+
id-token: write
1920
environment:
2021
name: npm
2122
url: https://www.npmjs.com/package/@wp-hooks/wordpress-core
@@ -29,10 +30,12 @@ jobs:
2930
node-version-file: '.nvmrc'
3031
registry-url: https://registry.npmjs.org
3132

33+
# Ensure npm 11.5.1 or later is installed
34+
- name: Update npm
35+
run: npm install -g npm@latest
36+
3237
- name: Install dependencies
3338
run: npm ci
3439

3540
- name: Publish package
36-
run: npm publish --provenance --access public
37-
env:
38-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
run: npm publish --access public

0 commit comments

Comments
 (0)