Skip to content

Release

Release #62

Workflow file for this run

name: Release
permissions:
actions: write
contents: write
on:
workflow_run:
workflows: ['test']
branches: release
types:
- completed
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: 🚀 Release
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
environment: Release
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 18.17.x
- name: 📥 Download deps
run: yarn install --frozen-lockfile
- name: Create Release Pull Request or Publish to Npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Send a Telegram notification if a publish happens
# if: steps.changesets.outputs.published == 'true'
# uses: appleboy/telegram-action@master