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: