Enable creating GitHub releases in version.yml workflow (#99) #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: Version | |
on: | |
push: | |
branches: | |
- master | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
changesets: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install packages | |
run: yarn install --frozen-lockfile | |
- name: Create Release Pull Request or Version | |
uses: changesets/action@v1 | |
with: | |
version: yarn changeset version | |
publish: yarn changeset tag | |
commit: Version packages | |
title: Release packages | |
createGithubReleases: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |