From bb755c33d1e0224d15fda56708c4a9416abaf855 Mon Sep 17 00:00:00 2001 From: Northern Man <19808920+NorthernMan54@users.noreply.github.com> Date: Wed, 27 Nov 2024 08:29:49 -0500 Subject: [PATCH] Update Prepare prebuild environment.yml --- .../workflows/Prepare prebuild environment.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/Prepare prebuild environment.yml b/.github/workflows/Prepare prebuild environment.yml index 3e4f33d3..372af1e4 100644 --- a/.github/workflows/Prepare prebuild environment.yml +++ b/.github/workflows/Prepare prebuild environment.yml @@ -323,6 +323,22 @@ jobs: registry-url: "https://registry.npmjs.org" cache: "npm" + - 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 + - uses: actions/download-artifact@v4 with: merge-multiple: true