Skip to content

Publish release to npm #18

Publish release to npm

Publish release to npm #18

name: Publish release to npm
on:
# For manual releases
workflow_dispatch:
inputs:
dry-run:
description: Whether to perform a dry run of the publish.
type: boolean
default: true
jobs:
npm-build:
if: github.repository == 'software-mansion/TypeGPU'
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write # for OIDC
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Check out
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Use Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 24.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Publish manual release
if: ${{ github.event_name == 'workflow_dispatch' }}
env:
DISABLE_DRY_RUN: ${{ inputs['dry-run'] == false }}
run: pnpm exec bun scripts/publish.ts