File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 10
10
workflow_dispatch :
11
11
12
12
permissions :
13
- # Provenance generation in GitHub Actions requires "write" access to the "id-token"
14
- id-token : write
15
- # `ncipollo/release-action` requires "write" access to the "contents"
16
13
contents : write
14
+ id-token : write
17
15
18
16
jobs :
19
17
publish :
20
18
runs-on : ubuntu-latest
21
- environment : production
19
+ environment : npm
22
20
steps :
23
21
- name : Checkout
24
22
uses : actions/checkout@v4
25
23
26
- - name : Install Pnpm
27
- run : |
28
- npm install -g corepack@latest --force
29
- corepack enable
30
-
31
24
- name : Setup Node.js
32
25
uses : actions/setup-node@v4
33
26
with :
34
27
node-version : 22
35
- cache : " pnpm"
28
+
29
+ # Update npm to the latest version to enable OIDC
30
+ # Use corepack to install pnpm
31
+ - name : Setup Package Managers
32
+ run : |
33
+ npm install -g npm@latest
34
+ npm --version
35
+ npm install -g corepack@latest --force
36
+ corepack enable
36
37
37
38
- name : Install Dependencies
38
39
run : pnpm install
39
40
40
41
- name : Publish
41
42
uses : JS-DevTools/npm-publish@v3
42
43
with :
43
- token : ${{ secrets.TS_CHECKER_RSPACK_PLUGIN_NPM_TOKEN }}
44
+ token : empty
44
45
45
46
- name : Create GitHub Release
46
47
uses : ncipollo/release-action@v1
Original file line number Diff line number Diff line change 76
76
},
77
77
"publishConfig" : {
78
78
"access" : " public" ,
79
- "provenance" : true ,
80
79
"registry" : " https://registry.npmjs.org/"
81
80
},
82
81
"packageManager" :
" [email protected] "
You can’t perform that action at this time.
0 commit comments