Merge pull request #3 from magicbell/changeset-release/main #9
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: Changeset | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BELLA_ACTION_TOKEN }} | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: bahmutov/npm-install@v1 | |
- name: Create release PR or publish release | |
uses: changesets/action@v1 | |
with: | |
version: yarn changeset:version | |
publish: yarn changeset:release | |
commit: 'chore: version package' | |
title: 'chore: version package' | |
createGithubReleases: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.BELLA_ACTION_TOKEN }} |