Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org

- name: Install Yarn
run: npm install -g yarn
Expand Down Expand Up @@ -67,9 +66,13 @@ jobs:
if: steps.notes-failure.outputs.matched == 'true'
working-directory: packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
# Scoped to this step only - setup-node's registry-url would otherwise
# export NPM_CONFIG_USERCONFIG for the whole job and break the normal
# Release step's own (unrelated) npm auth, which expects NPM_TOKEN directly.
npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
VERSION=$(node -p "require('./package.json').version")
TAG="v${VERSION}"
echo "Publishing ${TAG} to npm and creating the GitHub release..."
Expand Down
Loading