Skip to content

[ci] release (#492) #120

[ci] release (#492)

[ci] release (#492) #120

Workflow file for this run

name: release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: 20.x
- run: pnpm i --frozen-lockfile
- run: pnpm build
- run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
engine-strict=true
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: changesets/action@v1
with:
publish: pnpm exec changeset publish
commit: "[ci] release"
title: "[ci] release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}