File tree Expand file tree Collapse file tree 5 files changed +11
-13
lines changed
Expand file tree Collapse file tree 5 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 1818 runs-on : ubuntu-latest
1919 permissions :
2020 contents : write
21- id-token : write
2221
2322 steps :
2423 - uses : actions/checkout@v6
4039 PATHS_RELEASED='[\".\", \"packages/mcp-server\"]'
4140 fi
4241 yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
42+ env :
43+ NPM_TOKEN : ${{ secrets.CONTEXT_DEV_NPM_TOKEN || secrets.NPM_TOKEN }}
4344
4445 - name : Upload MCP Server DXT GitHub release asset
4546 run : |
Original file line number Diff line number Diff line change 1717 - name : Check release environment
1818 run : |
1919 bash ./bin/check-release-environment
20+ env :
21+ NPM_TOKEN : ${{ secrets.CONTEXT_DEV_NPM_TOKEN || secrets.NPM_TOKEN }}
2022
Original file line number Diff line number Diff line change 11configured_endpoints : 20
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-ea89aeedfdd75f71542bcbb53880ecbc07f2656945d9ac8dce55d7bdabc5f8cc.yml
33openapi_spec_hash : c4dd62c3a3dc8c59a050fb6a76ab5f1b
4- config_hash : 91976f3284e20f47fdb0256e128536cd
4+ config_hash : df40ba3de7dbee2faf0315c5fbd001dc
Original file line number Diff line number Diff line change 22
33errors=()
44
5+ if [ -z " ${NPM_TOKEN} " ]; then
6+ errors+=(" The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets" )
7+ fi
8+
59lenErrors=${# errors[@]}
610
711if [[ lenErrors -gt 0 ]]; then
Original file line number Diff line number Diff line change 22
33set -eux
44
5- if [[ ${NPM_TOKEN:- } ]]; then
6- npm config set ' //registry.npmjs.org/:_authToken' " $NPM_TOKEN "
7- elif [[ ! ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:- } ]]; then
8- echo " ERROR: NPM_TOKEN must be set if not running in a Github Action with id-token permission"
9- exit 1
10- fi
5+ npm config set ' //registry.npmjs.org/:_authToken' " $NPM_TOKEN "
116
127yarn build
138cd dist
6257 TAG=" latest"
6358fi
6459
65- # Install OIDC compatible npm version
66- npm install --prefix ../oidc/ npm@11.6.2
67-
6860# Publish with the appropriate tag
69- export npm_config_registry=' https://registry.npmjs.org'
70- ../oidc/node_modules/.bin/npm publish --tag " $TAG "
61+ yarn publish --tag " $TAG "
You can’t perform that action at this time.
0 commit comments