Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Oct 16, 2023
1 parent c7fe5e6 commit 9e1bfff
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/PackageNPMRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'Tag'
description: 'Tag'
required: true

jobs:
Package_NPM_Release:
name: Package NPM Release
runs-on: ubuntu-latest

steps:
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Download GitHub Release
uses: robinraju/[email protected]
with:
Expand All @@ -40,7 +40,7 @@ jobs:
fileCount=$(ls prebuilds/*/*node | wc -l)
echo "Prebuild count ${fileCount}"
if [ "$fileCount" -eq 0 ]; then exit 1; fi
- name: NPM build
run: |
npm install
Expand All @@ -62,7 +62,7 @@ jobs:
name: Publish NPM Release
needs: Package_NPM_Release

if: ${{ github.repository == 'NorthernMan54/node-pty-prebuilt-multiarch' }}
if: ${{ github.repository == 'homebridge/node-pty-prebuilt-multiarch' }}

uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
with:
Expand All @@ -72,4 +72,3 @@ jobs:




7 changes: 4 additions & 3 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'Tag'
description: 'Tag'
required: true

jobs:
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: windows-x86_64
os: windows-2019

steps:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
shell: bash
run: |
npm install --ignore-scripts
env JOBS=max node_modules/.bin/prebuildify -t 10.0.0 -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.1 --include-regex "\.(node|exe|dll|pdb)" --arch ia32
env JOBS=max node_modules/.bin/prebuildify -t 10.0.0 -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.1 --include-regex "\.(node|exe|dll|pdb)" --arch ia32
env JOBS=max node_modules/.bin/prebuildify -t 10.0.0 -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.1 -t 18.0.0 -t 20.0.0 --include-regex "\.(node|exe|dll|pdb)"
- name: Check prebuilds exist
Expand All @@ -127,3 +127,4 @@ jobs:
files: 'prebuilds-*tar.gz'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.inputs.tag }}

6 changes: 3 additions & 3 deletions .github/workflows/prebuildMacOSArm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'Tag'
description: 'Tag'
required: true

jobs:
buildify:
runs-on: [self-hosted, macOS, ARM64]
steps:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -43,4 +43,4 @@ jobs:
with:
files: 'prebuilds-*tar.gz'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.inputs.tag }}
release-tag: ${{ github.event.inputs.tag }}
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ When `@homebridge/node-pty-prebuilt-multiarch` is installed as a package depende

## Build / Package

Please note releasing this package uses github actions.

1. Make your updates, and update version within package.json
2. Create a Pre Release on github with the TAG matching the version from Step 1
3. Run the gituhb action `Prebuild node-gyp and package for a GitHub Release` and supply the version TAG
4. Start a MacOS ARM64 Local runner in your environment
5. Run the gituhb action `Prebuild node-gyp MacOS ARM64 Binaries and package for a GitHub Release` and supply the version TAG
6. Wait for steps 3 and 5 to complete, 3 takes about an hour. If you need to rerun a step, go into the Release, and remove the attached prebuilds.
7. Run the gituhb action `Package GitHub release for NPM` and supply the version TAG.
Please note releasing this package uses GitHub actions.

1. Make your updates, and update version within package.json (and regenerate the lock file with the new version)
2. Create a Pre Release on GitHub with the TAG matching the version from Step 1 (with a `v` in front of it)
3. Run the GitHub action `Prebuild node-gyp and package for a GitHub Release` and supply the version TAG
4. Start a macOS ARM64 Local runner in your environment (see [here](https://github.com/homebridge/node-pty-prebuilt-multiarch/settings/actions/runners))
5. Run the GitHub action `Prebuild node-gyp MacOS ARM64 Binaries and package for a GitHub Release` and supply the version TAG
6. Wait for steps 3 and 5 to complete (step 3 takes about 20 minutes). If you need to rerun a step, go into the GitHub Release, and remove the attached pre-builds.
7. Run the GitHub action `Package GitHub release for NPM` and supply the version TAG.

## License

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": {
"name": "Microsoft Corporation"
},
"version": "0.11.2",
"version": "0.11.3",
"license": "MIT",
"main": "./lib/index.js",
"types": "./typings/node-pty.d.ts",
Expand Down

0 comments on commit 9e1bfff

Please sign in to comment.