From a0d9ab86c72b9813fd41ce5fc3483823293a4ca4 Mon Sep 17 00:00:00 2001 From: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com> Date: Wed, 27 Nov 2024 20:39:07 -0500 Subject: [PATCH] Ok --- .../workflows/Prepare prebuild environment.yml | 16 ++++++++++++++++ .github/workflows/Stage 2 - Validate.yml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Prepare prebuild environment.yml b/.github/workflows/Prepare prebuild environment.yml index fdd1db8b..5ed1b2bb 100644 --- a/.github/workflows/Prepare prebuild environment.yml +++ b/.github/workflows/Prepare prebuild environment.yml @@ -175,6 +175,22 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* + + - name: Fetch Adjust version script + if: ${{ inputs.Beta }} + run: wget https://raw.githubusercontent.com/homebridge/.github/latest/.github/npm-version-script.js + working-directory: .github + + - if: ${{ inputs.Beta }} + run: npm install semver + + - name: Adjust version + if: ${{ inputs.Beta }} + run: node .github/npm-version-script.js ${{ github.ref }} beta + + - name: npm version (without git commit) + if: ${{ inputs.Beta }} + run: npm version pre --preid=beta --no-git-tag-version - name: Linux - Setup Dependencies if: runner.os == 'Linux' diff --git a/.github/workflows/Stage 2 - Validate.yml b/.github/workflows/Stage 2 - Validate.yml index 2a3956c9..49490ab3 100644 --- a/.github/workflows/Stage 2 - Validate.yml +++ b/.github/workflows/Stage 2 - Validate.yml @@ -1,4 +1,4 @@ -name: Stage 2 - Validate +name: Stage 2 - Validate NPM Package contents run-name: Stage 2 - Validate against ${{ github.ref_name }} on: