This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
Lean 2850 (#120) #205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Version and publish packages with changesets | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
env: | |
CI: true | |
PNPM_CACHE_FOLDER: .pnpm-store | |
jobs: | |
version: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
with: | |
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Setup caching | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.PNPM_CACHE_FOLDER }} | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: Install dependencies with pnpm | |
uses: ./.github/actions/pnpm | |
- name: Build packages | |
run: | | |
pnpm --filter @manuscripts/quarterback-types \ | |
--filter @manuscripts/track-changes-plugin \ | |
build | |
- name: Create and publish versions | |
uses: changesets/action@v1 | |
with: | |
version: pnpm ci:version | |
commit: 'chore(changeset): version update' | |
title: 'chore(changeset): version update' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
HOME: ${{ github.workspace }} |