File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 28
28
name : Release
29
29
if : github.repository == 'web-infra-dev/rslib' && github.event_name == 'workflow_dispatch'
30
30
runs-on : ubuntu-latest
31
- environment : production
31
+ environment : npm
32
32
steps :
33
33
- name : Checkout
34
34
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -47,12 +47,15 @@ jobs:
47
47
node-version : 22
48
48
cache : ' pnpm'
49
49
50
+ # Update npm to the latest version to enable OIDC
51
+ - name : Update npm
52
+ run : |
53
+ npm install -g npm@latest
54
+ npm --version
55
+
50
56
- name : Install Dependencies
51
57
run : pnpm install
52
58
53
59
- name : Publish to npm
54
- env :
55
- NPM_TOKEN : ${{ secrets.RSLIB_NPM_TOKEN }}
56
60
run : |
57
- npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
58
61
pnpm -r publish --tag ${{ github.event.inputs.npm_tag }} --publish-branch ${{ github.event.inputs.branch }}
Original file line number Diff line number Diff line change 80
80
},
81
81
"publishConfig" : {
82
82
"access" : " public" ,
83
- "provenance" : true ,
84
83
"registry" : " https://registry.npmjs.org/"
85
84
}
86
85
}
Original file line number Diff line number Diff line change 46
46
},
47
47
"publishConfig" : {
48
48
"access" : " public" ,
49
- "provenance" : true ,
50
49
"registry" : " https://registry.npmjs.org/"
51
50
}
52
51
}
Original file line number Diff line number Diff line change 62
62
},
63
63
"publishConfig" : {
64
64
"access" : " public" ,
65
- "provenance" : true ,
66
65
"registry" : " https://registry.npmjs.org/"
67
66
}
68
67
}
You can’t perform that action at this time.
0 commit comments