Skip to content

Commit ff45057

Browse files
committed
Configure npm publish action more strictly
1 parent 9e5be85 commit ff45057

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
jobs:
77
publish:
88
runs-on: ubuntu-latest
9+
environment: prod
910
permissions:
1011
contents: read
1112
id-token: write
@@ -17,8 +18,6 @@ jobs:
1718
- uses: actions/setup-node@v6
1819
with:
1920
node-version-file: .nvmrc
20-
cache: 'npm'
21-
- name: Install dependencies
22-
run: npm install
21+
package-manager-cache: false
2322
- name: Publish Package To npmjs
2423
run: npm publish --provenance

0 commit comments

Comments
 (0)