File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 11name : Publish NPM package
22permissions :
3+ # Note: Because this workflow is call from release, the
4+ # trusted publisher workflow will be release.yml
5+ # see https://docs.npmjs.com/trusted-publishers
6+ id-token : write
37 contents : write
48on :
59 # Release workflow calls this after shared test step succeeds
@@ -12,15 +16,16 @@ jobs:
1216 uses : actions/checkout@v4
1317 with :
1418 fetch-depth : 0
15- - name : Setup Bun
16- uses : oven-sh/setup-bun@v2
19+ - name : Setup NPM
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : ' 24'
23+ registry-url : ' https://registry.npmjs.org'
1724 - name : Install dependencies
18- run : bun install
25+ run : npm install
1926 - name : Build NPM package
20- run : bun run build:npm
27+ run : npm run build:npm
2128 - name : Publish NPM package
2229 run : |
2330 cd publish/npm
24- bun publish --access public
25- env :
26- NPM_CONFIG_TOKEN : ${{ secrets.NPM_TOKEN }}
31+ npm publish --access public
Original file line number Diff line number Diff line change 11name : Release
22permissions :
3+ id-token : write
34 contents : write
45on :
56 push :
You can’t perform that action at this time.
0 commit comments