Skip to content

fix re-exports (#28) #42

fix re-exports (#28)

fix re-exports (#28) #42

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: create nvmrc
run: sed -n 's/^use-node-version=//p' .npmrc >> .nvmrc
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: "https://registry.npmjs.org"
- name: nvmrc cleanup
run: rm .nvmrc
- uses: pnpm/action-setup@v3
with:
version: 9.0.4
run_install: false
- name: get pnpm store
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: pnpm cache
env:
STORE_PATH: ${{ env.STORE_PATH }}
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install
- run: pnpm check
- if: github.ref == 'refs/heads/master'
name: publish
id: changesets
uses: changesets/action@v1
with:
title: version packages
commit: version packages
version: pnpm ci:version
# https://github.com/changesets/action/issues/246
# https://github.com/changesets/changesets/pull/674
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}