rowboat/.github/workflows/x-publish.yml
nocxcloud-oss 4239f9f1ef strengthen repo verification and runtime coverage
Add clearer app docs plus targeted desktop, CLI, web, and worker tests so cross-surface regressions are caught earlier and the repo is easier to navigate.
2026-04-15 19:10:41 +08:00

40 lines
809 B
YAML

name: Publish to npm
on: workflow_dispatch
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- name: Update npm
run: npm install -g npm@latest
- name: Install deps
run: npm ci
working-directory: apps/cli
- name: Verify
run: npm run verify
working-directory: apps/cli
- name: Pack
run: npm pack
working-directory: apps/cli
- name: Publish to npm
run: npm publish --access public
working-directory: apps/cli