chore: update #4
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 | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Releasing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v4 | |
with: | |
run_install: | | |
- recursive: true | |
args: [--frozen-lockfile] | |
- name: Build workspace packages | |
run: pnpm run build | |
- name: Run type checking | |
run: pnpm run typecheck | |
- name: Run linting | |
run: pnpm run lint | |
- name: Create Release Pull Request / Publish Packages | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm run release | |
version: pnpm run version-packages | |
commit: 'chore: release package(s)' | |
title: 'chore: release package(s)' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |