Skip to content

fix(ci): fix npm publish public #9

fix(ci): fix npm publish public

fix(ci): fix npm publish public #9

Workflow file for this run

name: release
on:
push:
branches:
- main
permissions: {}
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: fregante/setup-git-user@v2
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: yarn install
- name: Prepare build environment
run: yarn dev:prepare
- name: release
run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}