Skip to content

Publish

Publish #4

Workflow file for this run

name: Publish
on:
workflow_run:
workflows: [CI]
branches: [main]
types: [completed]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
cache: pnpm
- name: Install dependencies 📦️
run: pnpm install --frozen-lockfile
- name: Build 🔨
run: pnpm build
- uses: simenandre/publish-with-pnpm@v1
with:
npm-auth-token: ${{ secrets.NPM_TOKEN }}