Skip to content

chore: update GH actions and add release job #1

chore: update GH actions and add release job

chore: update GH actions and add release job #1

Workflow file for this run

name: 'Manage changesets'
on:
workflow_dispatch:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
main:
name: Publish changed packages
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: yarn
- name: 📦 Install dependencies
run: yarn install
- name: 🆕 Publish to npm or create release PR
id: changesets
uses: changesets/action@v1
with:
title: '🆕 Upcoming release'
commit: 'chore: version packages'
version: yarn version
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}