chore: fix release ci #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'pnpm' | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@tidbcloud' | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Build Package | |
run: pnpm build | |
- name: Create Release Pull Request or Publish | |
uses: changesets/action@v1 | |
with: | |
commit: 'release: bump versions' | |
title: 'release: bump versions' | |
publish: pnpm release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |