Require explicit version for manual CLI npm publish workflow

This commit is contained in:
Gregory Schier
2026-02-22 09:22:33 -08:00
parent e0bf571ddd
commit f723d77ac6

View File

@@ -4,6 +4,11 @@ on:
push:
tags: [v*]
workflow_dispatch:
inputs:
version:
description: Version to publish (for example v2026.3.0)
required: true
type: string
jobs:
build-binaries:
@@ -97,7 +102,7 @@ jobs:
- name: Prepare npm packages
env:
YAAK_CLI_VERSION: ${{ github.ref_name }}
YAAK_CLI_VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.version || github.ref_name }}
run: node npm/prepare-publish.js
- name: Ensure NPM token exists