Skip to content

Publish to npm

Publish to npm #3

Workflow file for this run

name: Publish to npm
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Enable corepack
run: corepack enable
- name: Activate pnpm
run: corepack prepare pnpm@10.28.0 --activate
- name: Update npm
run: npm install -g npm@11.5.1
- name: Install
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm -r build
- name: Lint
run: pnpm run lint
- name: Typecheck
run: pnpm run typecheck
- name: Test
run: pnpm run test
- name: Publish shared
run: npm publish --provenance --access public --no-git-checks
working-directory: packages/shared
- name: Publish daemon
run: npm publish --provenance --access public --no-git-checks
working-directory: packages/daemon
- name: Publish cli
run: npm publish --provenance --access public --no-git-checks
working-directory: packages/cli