fix: workflow #1
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 | |
- name: Install Dependencies | |
run: npm install --frozen-lockfile --prefer-offline | |
- name: Build workspace packages | |
run: npm run build | |
- name: Run type checking | |
run: npm run typecheck | |
- name: Run linting | |
run: npm run lint | |
- name: Create Release Pull Request / Publish Packages | |
uses: changesets/action@v1 | |
with: | |
publish: npm run release | |
version: npm run version-packages | |
commit: 'chore: release package(s)' | |
title: 'chore: release package(s)' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |