Skip to content

NPM Publish

NPM Publish #5

Workflow file for this run

name: NPM Publish
on:
workflow_dispatch:
inputs:
tag:
description: "Git tag to publish"
required: true
dry_run:
description: "Perform a dry run of the npm publish"
required: false
default: true
type: boolean
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag }}
- name: Install deps
uses: ./.github/actions/cached-ui-deps
- name: Publish NPM package
run: |
if [ "${{ github.event.inputs.dry_run }}" = "true" ]; then
npm publish --provenance --access public --dry-run
else
npm publish --provenance --access public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}