mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 16:36:22 +02:00
43 lines
No EOL
859 B
YAML
43 lines
No EOL
859 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@v4
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
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
|
|
|
|
# optional: run tests
|
|
# - run: npm test
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
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 |