File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -16,28 +16,32 @@ permissions:
1616jobs :
1717 publish :
1818 runs-on : ubuntu-latest
19+ environment : npm
1920 steps :
2021 - name : Checkout
2122 uses : actions/checkout@v4
2223
23- - name : Install Pnpm
24- run : |
25- npm install -g corepack@latest --force
26- corepack enable
27-
2824 - name : Setup Node.js
2925 uses : actions/setup-node@v4
3026 with :
3127 node-version : 22
32- 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
3337
3438 - name : Install Dependencies
3539 run : pnpm install
3640
3741 - name : Publish
3842 uses : JS-DevTools/npm-publish@v3
3943 with :
40- token : ${{ secrets.RSBUILD_PLUGIN_NPM_TOKEN }}
44+ token : empty
4145
4246 - name : Create GitHub Release
4347 uses : ncipollo/release-action@v1
You can’t perform that action at this time.
0 commit comments