Test #46
Workflow file for this run
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: Publish new release | |
on: push | |
jobs: | |
release: | |
strategy: | |
matrix: | |
os: [macos-13, macos-14] | |
runs-on: ${{ matrix.os }} | |
name: Publish new release | |
steps: | |
- name: Checkout current commit/branch/tag | |
uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Configure pnpm for release | |
run: | | |
pnpm config set shamefully-hoist true --location=project | |
pnpm config set auto-install-peers true --location=project | |
pnpm config set strict-peer-dependencies true --location=project | |
- name: Install dependencies | |
run: pnpm install | |
env: | |
NODE_ENV: development | |
- name: Build app | |
run: pnpm build | |
env: | |
NODE_ENV: production | |
- name: Package and publish | |
run: pnpm package:publish | |
env: | |
CI: true | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |