mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-17 18:21:26 +02:00
Scope CLI npm releases to yaakcli-v tags
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user