Skip to content

Publish videospec to npm #38

Publish videospec to npm

Publish videospec to npm #38

Workflow file for this run

name: Publish videospec to npm
on:
push:
tags:
- 'v*'
defaults:
run:
working-directory: cli
jobs:
publish:
runs-on: ubuntu-latest
environment: publish
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
cache-dependency-path: cli/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish with OIDC provenance
run: npm publish --provenance --access public