Version Packages (#255) #222
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: | |
- master | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 0 | |
# Corepack is an official tool by Node.js that manages package managers versions | |
- name: Setup yarn | |
run: corepack enable | |
- name: Setup Node.js environment | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version-file: ".node-version" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn | |
- name: Create Release Pull Request | |
id: changesets | |
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7 | |
with: | |
version: yarn run version | |
publish: yarn run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |