Skip to content

ci: release workflow (#9) #1

ci: release workflow (#9)

ci: release workflow (#9) #1

Workflow file for this run

name: Release
on:
push:
branches:
- release
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: 🚀 Release
runs-on: ubuntu-latest
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