Publish api-augment to npm.js #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
registry-url: https://registry.npmjs.org/ | |
- name: Build API Augment | |
run: | | |
cd api-augment | |
pnpm i --frozen-lockfile | |
pnpm run build | |
- name: Publish API Augment | |
run: | | |
cd api-augment | |
pnpm publish ${{ github.event.inputs.DryRun && '--dry-run' || '' }} --access public --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |