Scope CLI npm releases to yaakcli-v tags

This commit is contained in:
Gregory Schier
2026-02-22 09:39:49 -08:00
parent f33c85c90c
commit ef81de1b01
+13 -4
View File
@@ -2,11 +2,11 @@ name: Release CLI to NPM
on: on:
push: push:
tags: [v*] tags: [yaakcli-v*]
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
description: Version to publish (for example v2026.3.0) description: CLI version to publish (for example 0.4.0 or v0.4.0)
required: true required: true
type: string type: string
@@ -104,9 +104,18 @@ jobs:
merge-multiple: false merge-multiple: false
- name: Prepare npm packages - name: Prepare npm packages
shell: bash
env: env:
YAAK_CLI_VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.version || github.ref_name }} WORKFLOW_VERSION: ${{ inputs.version }}
run: node npm/prepare-publish.js run: |
set -euo pipefail
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION="$WORKFLOW_VERSION"
else
VERSION="${GITHUB_REF_NAME#yaakcli-v}"
fi
echo "Preparing CLI npm packages for version: $VERSION"
YAAK_CLI_VERSION="$VERSION" node npm/prepare-publish.js
- name: Ensure NPM token exists - name: Ensure NPM token exists
env: env: