Skip to content

Commit f3819af

Browse files
committed
feat(release): enable npm trusted packages
1 parent db75682 commit f3819af

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
1717
strategy:
1818
matrix:
19-
node: ["18.x", "20.x", "22.x"]
19+
node: ["20.x", "22.x", "24.x"]
2020
os: [ubuntu-latest, windows-latest, macOS-latest]
2121
runs-on: ${{ matrix.os }}
2222
env:
@@ -76,6 +76,9 @@ jobs:
7676
timeout-minutes: 15
7777
runs-on: ubuntu-latest
7878
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.event.pull_request.draft == false
79+
permissions:
80+
id-token: write
81+
contents: read
7982
needs: validate
8083
steps:
8184
- name: Checkout repo
@@ -96,5 +99,5 @@ jobs:
9699
version: pnpm publish:version
97100
env:
98101
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
100-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
102+
NPM_TOKEN: ''
103+
NPM_CONFIG_PROVENANCE: true

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"pnpm": ">=9.0.2"
6969
},
7070
"publishConfig": {
71-
"access": "public"
71+
"access": "public",
72+
"provenance": true
7273
}
7374
}

0 commit comments

Comments
 (0)