Skip to content

Merge pull request #20 from FriedRiceNoodles/ci/workflows #11

Merge pull request #20 from FriedRiceNoodles/ci/workflows

Merge pull request #20 from FriedRiceNoodles/ci/workflows #11

Workflow file for this run

name: Release
on:
push:
branches:
- master
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
# 安装 pnpm
- uses: pnpm/action-setup@v2
with:
version: 8.7.0
# 安装依赖
- name: Install dependencies
run: pnpm install
# 构建
- name: Build
run: pnpm build
# 测试
- name: Test
run: pnpm test
- name: Create Release Pull Request
uses: changesets/action@v1
with:
commit: 'chore(release): release by changesets'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}