Skip to content

Merge pull request #52 from tidbcloud/changeset-release/main #58

Merge pull request #52 from tidbcloud/changeset-release/main

Merge pull request #52 from tidbcloud/changeset-release/main #58

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- 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: Test
run: pnpm test
- 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 }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}