Skip to content

Publish api-augment to npm.js #2

Publish api-augment to npm.js

Publish api-augment to npm.js #2

name: Publish api-augment to npm.js
on:
workflow_dispatch:
inputs:
sha:
description: Full SHA to build the pnpm package from
required: true
jobs:
publish-api-augment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.sha }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Build API Augment
run: |
cd api-augment
pnpm install
pnpm run build
- name: Publish API Augment
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: api-augment/package.json
registry: https://registry.npmjs.org/
access: public
command: pnpm publish