File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,14 +18,22 @@ jobs:
1818 runs-on : ubuntu-latest
1919 permissions :
2020 contents : write
21+ id-token : write
2122
2223 steps :
2324 - uses : actions/checkout@v6
2425
2526 - name : Set up Node
26- uses : actions/setup-node@v3
27+ uses : actions/setup-node@v6
2728 with :
28- node-version : ' 20'
29+ node-version : ' 24'
30+ registry-url : ' https://registry.npmjs.org'
31+
32+ - name : Upgrade npm for trusted publishing support
33+ run : npm install -g npm@latest
34+
35+ - name : Enable corepack
36+ run : corepack enable
2937
3038 - name : Install dependencies
3139 run : |
4149 yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
4250 env :
4351 INPUT_PATH : ${{ github.event.inputs.path }}
44- NPM_TOKEN : ${{ secrets.SUPERMEMORY_NPM_TOKEN || secrets.NPM_TOKEN }}
4552
4653 - name : Upload MCP Server DXT GitHub release asset
4754 run : |
Original file line number Diff line number Diff line change 22
33set -eux
44
5- npm config set ' //registry.npmjs.org/:_authToken' " $NPM_TOKEN "
6-
75yarn build
86cd dist
97
5755 TAG=" latest"
5856fi
5957
60- # Publish with the appropriate tag
61- yarn publish --tag " $TAG "
58+ # Publish with the appropriate tag using npm trusted publishing (OIDC provenance)
59+ npm publish --tag " $TAG " --provenance
You can’t perform that action at this time.
0 commit comments