diff --git a/.github/workflows/PackageNPMRelease.yml b/.github/workflows/PackageNPMRelease.yml index d7f7f407b..40cb1dccd 100644 --- a/.github/workflows/PackageNPMRelease.yml +++ b/.github/workflows/PackageNPMRelease.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: inputs: tag: - description: 'Tag' + description: 'Tag' required: true jobs: @@ -13,7 +13,7 @@ jobs: name: Package NPM Release runs-on: ubuntu-latest - steps: + steps: - name: Checkout Code uses: actions/checkout@v4 @@ -21,7 +21,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: lts/* - + - name: Download GitHub Release uses: robinraju/release-downloader@v1.8 with: @@ -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 @@ -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: @@ -72,4 +72,3 @@ jobs: - \ No newline at end of file diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index 8a01e9c3f..f73a6cf5d 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: inputs: tag: - description: 'Tag' + description: 'Tag' required: true jobs: @@ -74,7 +74,7 @@ jobs: - name: windows-x86_64 os: windows-2019 - steps: + steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: @@ -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 @@ -127,3 +127,4 @@ jobs: files: 'prebuilds-*tar.gz' repo-token: ${{ secrets.GITHUB_TOKEN }} release-tag: ${{ github.event.inputs.tag }} + diff --git a/.github/workflows/prebuildMacOSArm.yml b/.github/workflows/prebuildMacOSArm.yml index cbed3baff..b778d6aef 100644 --- a/.github/workflows/prebuildMacOSArm.yml +++ b/.github/workflows/prebuildMacOSArm.yml @@ -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: @@ -43,4 +43,4 @@ jobs: with: files: 'prebuilds-*tar.gz' repo-token: ${{ secrets.GITHUB_TOKEN }} - release-tag: ${{ github.event.inputs.tag }} \ No newline at end of file + release-tag: ${{ github.event.inputs.tag }} diff --git a/README.md b/README.md index 8712aced3..16205d842 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package-lock.json b/package-lock.json index e26777571..1e0b982c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@homebridge/node-pty-prebuilt-multiarch", - "version": "0.11.2", + "version": "0.11.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@homebridge/node-pty-prebuilt-multiarch", - "version": "0.11.2", + "version": "0.11.3", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 38c61ab51..9658ad1c5 100644 --- a/package.json +++ b/package.json @@ -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",