Skip to content

chore: add NPM auth preflight step to semantic-release workflow #1068

chore: add NPM auth preflight step to semantic-release workflow

chore: add NPM auth preflight step to semantic-release workflow #1068

name: Release
on:
push:
branches:
- next
- v2
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: NPM auth preflight
run: |
node -v
npm -v
npm config get registry
npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 24
branches: |
[
"next",
"v2"
]
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}