Skip to content

Commit

Permalink
Update Prepare prebuild environment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Nov 28, 2024
1 parent 21e75f5 commit 8faaa9b
Showing 1 changed file with 7 additions and 34 deletions.
41 changes: 7 additions & 34 deletions .github/workflows/Prepare prebuild environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
branch: "release-candidate"
message: "Prepare prebuild environment ${{ github.ref_name }}"
rebase: true

prebuild:
name: ${{ matrix.name }} - Prebuild NPM and GitHub Release artifacts
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -219,27 +219,13 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
ref: "release-candidate"

- 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'
run: |
Expand Down Expand Up @@ -383,30 +369,17 @@ jobs:
repository-projects: write

steps:
- uses: actions/checkout@v4
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: "release-candidate"

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
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:
Expand Down

0 comments on commit 8faaa9b

Please sign in to comment.