Skip to content

version-packages (#95) #82

version-packages (#95)

version-packages (#95) #82

Workflow file for this run

name: Release
on:
push:
branches: [main]
paths: [packages/**, .changeset/**]
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn
- name: Install dependencies
run: yarn install
# https://github.com/changesets/action
- name: Create release PR or release packages
uses: changesets/action@v1
with:
publish: yarn release
commit: version-packages
title: Version Packages
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}