Skip to content

Publish Package

Publish Package #9

Workflow file for this run

name: Publish Package
on:
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
if: >-
github.repository == 'WaveSpeedAI/wavespeed-javascript' &&
github.event_name == 'workflow_dispatch' &&
github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm publish