File tree Expand file tree Collapse file tree
actions/release-tag-creation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,14 +38,17 @@ runs:
3838 steps :
3939 - name : Install dependencies
4040 shell : bash
41- run : npm install --prefix "${{ github.action_path }}"
41+ env :
42+ ACTION_PATH : ${{ github.action_path }}
43+ run : npm install --prefix "$ACTION_PATH"
4244
4345 - name : Handle version input
4446 id : handle-version-input
4547 shell : bash
4648 env :
4749 INPUT_VERSION : ${{ inputs.version }}
48- run : node "${{ github.action_path }}/main.ts"
50+ ACTION_PATH : ${{ github.action_path }}
51+ run : node "$ACTION_PATH/main.ts"
4952
5053 - name : Switch to release branch
5154 shell : bash
7275 INPUT_VERSION : ${{ inputs.version }}
7376 INPUT_CHANNEL : ${{ steps.handle-version-input.outputs.channel }}
7477 INPUT_COMPANION_TAG : ${{ steps.handle-version-input.outputs.companion_tag }}
75- run : node "${{ github.action_path }}/update-version-files.ts"
78+ ACTION_PATH : ${{ github.action_path }}
79+ run : node "$ACTION_PATH/update-version-files.ts"
7680
7781 - name : Commit version bump
7882 shell : bash
Original file line number Diff line number Diff line change 11import { spawnSync } from 'node:child_process' ;
22import { appendFileSync } from 'node:fs' ;
3- import semver from 'semver' ;
4- import { checkVersionIsNext , fetchCompanionTag } from './current-version-validation.ts' ;
3+ import semver from 'semver' ;
4+ import { checkVersionIsNext , fetchCompanionTag } from './current-version-validation.ts' ;
55
66// X.Y.Z or X.Y.Z-betaN — no dot between "beta" and the number
77export const ALLOWED_PATTERN = / ^ \d + \. \d + \. \d + ( - b e t a \d + ) ? $ / ;
@@ -63,9 +63,6 @@ export function checkCurrentTagDoesNotExist(version: string): void {
6363 console . log ( `✅ Version ${ version } does not exist as a GitHub Release.` ) ;
6464}
6565
66-
67-
68-
6966// ─── derivation ───────────────────────────────────────────────────────────────
7067
7168export function extractChannel ( version : string ) : 'stable' | 'beta' {
You can’t perform that action at this time.
0 commit comments