Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Lean 2850 (#120)

Lean 2850 (#120) #205

Workflow file for this run

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 }}