Skip to content

Release Canary

Release Canary #3

name: Release Canary
on:
workflow_run:
workflows: ['Tests']
branches: [canary]
types:
- completed
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*' # Use the latest LTS version of Node.js
- name: Set yarn version
run: yarn set version 4.1.1
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn release --tag canary
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}