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 a0d9ab8 commit 21e75f5
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion .github/workflows/Prepare prebuild environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,54 @@ env:
ReleasePrebuildifyCount: 49

jobs:
Prepare_prebuild_environment:
name: Prepare prebuild environment ${{ github.ref_name }}
runs-on: ubuntu-latest
steps:
- name: Delete pr-* branches
uses: homebridge/action-delete-branch@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branches: "release-candidate"

- uses: actions/checkout@v4
- name: Create Branch
uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- 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: Allow prebuilds to be stored on github
run: sed -i.bak '/prebuilds/d' .gitignore

- name: Commit & Push changes
uses: actions-js/push@master
with:
author_name: ${{ github.actor }}
github_token: ${{ secrets.GITHUB_TOKEN }}
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 @@ -175,7 +223,7 @@ 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
Expand Down

0 comments on commit 21e75f5

Please sign in to comment.