Release Stable #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 Stable | |
on: | |
workflow_run: | |
workflows: [Code Quality] | |
types: [completed] | |
branches: [main] | |
jobs: | |
main: | |
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: NPM registry authentication | |
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: pnpm i | |
- name: Changeset version or publish on @latest | |
uses: changesets/action@v1 | |
with: | |
commit: 'chore(release): version packages' | |
title: 'chore(release): version packages' | |
version: pnpm run changeset:version | |
publish: pnpm run changeset:publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |