-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Changes to support automated testing Changes to support automated testing Update Build and Publish.yml * Bump axios from 1.6.8 to 1.7.2 (#88) * Update Build and Publish.yml * Update Build and Publish.yml * --- updated-dependencies: - dependency-name: axios dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Northern Man <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump bonjour-hap from 3.6.5 to 3.7.2 (#79) * Update Build and Publish.yml * Update Build and Publish.yml * Bump bonjour-hap from 3.6.5 to 3.7.2 Bumps [bonjour-hap](https://github.com/homebridge/bonjour) from 3.6.5 to 3.7.2. - [Release notes](https://github.com/homebridge/bonjour/releases) - [Commits](homebridge/bonjour@v3.6.5...v3.7.2) --- updated-dependencies: - dependency-name: bonjour-hap dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Northern Man <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update filter option to a list * Update Build and Publish.yml * Update package-lock.json * Update package.json * Fix for Provenance * Tuned fix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5bd164a
commit 85ca5ab
Showing
6 changed files
with
4,388 additions
and
4,331 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: "Build and Publish" | ||
|
||
on: | ||
push: | ||
branches: [beta-*.*.*, beta] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
get_tags: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# checkout repo | ||
- uses: actions/checkout@v4 | ||
|
||
# get branch / tag name | ||
- name: Get Branch / Tag Name | ||
id: get_branch | ||
run: | | ||
export BRANCH_NAME=$(if [[ ${GITHUB_REF} =~ "refs/tags/" ]]; then echo ${GITHUB_REF/refs\/tags\//}; else echo ${GITHUB_REF/refs\/heads\//}; fi) | ||
echo $BRANCH_NAME | ||
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_OUTPUT | ||
# generate the image tag | ||
- name: Get Image Tag | ||
id: get_tag | ||
run: | | ||
export TARGET_IMAGE_TAG=$(if [ "${{ steps.get_branch.outputs.BRANCH_NAME }}" = "main" ]; then echo "main"; else echo "${{ steps.get_branch.outputs.BRANCH_NAME }}" | awk -F- '{ print $1 }'; fi) | ||
echo $TARGET_IMAGE_TAG | ||
echo "TARGET_IMAGE_TAG=${TARGET_IMAGE_TAG}" >> $GITHUB_OUTPUT | ||
outputs: | ||
BRANCH_NAME: ${{ steps.get_branch.outputs.BRANCH_NAME }} | ||
TARGET_IMAGE_TAG: ${{ steps.get_tag.outputs.TARGET_IMAGE_TAG }} | ||
|
||
publish_prod_release: | ||
permissions: | ||
id-token: write | ||
needs: get_tags | ||
name: Publish Release Version | ||
if: ${{ needs.get_tags.outputs.BRANCH_NAME == 'main' }} | ||
uses: homebridge/.github/.github/workflows/npm-publish.yml@latest | ||
with: | ||
install_cmd: npm ci | ||
secrets: | ||
npm_auth_token: ${{ secrets.npm_token }} | ||
|
||
publish_test: | ||
permissions: | ||
id-token: write | ||
needs: get_tags | ||
name: Publish Test Version - ${{ needs.get_tags.outputs.BRANCH_NAME }} | ||
if: ${{ needs.get_tags.outputs.BRANCH_NAME != 'main' }} | ||
uses: homebridge/.github/.github/workflows/npm-publish.yml@latest | ||
with: | ||
tag: ${{ needs.get_tags.outputs.TARGET_IMAGE_TAG }} | ||
dynamically_adjust_version: true | ||
npm_version_command: "pre" | ||
pre_id: ${{ needs.get_tags.outputs.TARGET_IMAGE_TAG }} | ||
secrets: | ||
npm_auth_token: ${{ secrets.npm_token }} | ||
|
||
publish_github_release: | ||
needs: [publish_prod_release] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ needs.publish_prod_release.outputs.NPM_VERSION }} | ||
name: Release ${{ needs.publish_prod_release.outputs.NPM_VERSION }} | ||
generate_release_notes: true | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.