Skip to content

chore: add npm config set for release.yml #1325

chore: add npm config set for release.yml

chore: add npm config set for release.yml #1325

Workflow file for this run

concurrency:
group: ${{ github.workflow }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- uses: ./.github/actions/prepare
- run: pnpm build
- run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx release-it --preRelease=beta
name: Release
on:
push:
branches:
- main
permissions:
contents: write
id-token: write