File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -16,28 +16,33 @@ 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
3228 cache : " pnpm"
3329
30+ # Use corepack to install pnpm
31+ # Update npm to the latest version to enable OIDC
32+ - name : Setup Package Managers
33+ run : |
34+ npm install -g npm@latest
35+ npm --version
36+ npm install -g corepack@latest --force
37+ corepack enable
38+
3439 - name : Install Dependencies
3540 run : pnpm install
3641
3742 - name : Publish
3843 uses : JS-DevTools/npm-publish@v3
3944 with :
40- token : ${{ secrets.RSBUILD_PLUGIN_NPM_TOKEN }}
45+ token : empty
4146
4247 - name : Create GitHub Release
4348 uses : ncipollo/release-action@v1
You can’t perform that action at this time.
0 commit comments