Skip to content

Commit

Permalink
Update Build and Publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Nov 22, 2023
1 parent 6d9740c commit 88576ce
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/Build and Publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Build"

on:
on:
push

jobs:
Expand Down Expand Up @@ -37,15 +37,15 @@ jobs:
echo "ALT_IMAGE_TAG=${ALT_IMAGE_TAG}" >> $GITHUB_OUTPUT
- name: Publish Test Version - ${{ steps.get_tag.outputs.TARGET_IMAGE_TAG }}
if: ${{ steps.get_branch.outputs.BRANCH_NAME != 'main' }}
uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
with:
tag: ${{ steps.get_tag.outputs.TARGET_IMAGE_TAG }}
dynamically_adjust_version: true
npm_version_command: 'pre'
pre_id: ${{ steps.get_tag.outputs.TARGET_IMAGE_TAG }}
secrets:
npm_auth_token: ${{ secrets.npm_token }}
if: ${{ steps.get_branch.outputs.BRANCH_NAME != 'main' }}
uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
with:
tag: ${{ steps.get_tag.outputs.TARGET_IMAGE_TAG }}
dynamically_adjust_version: true
npm_version_command: 'pre'
pre_id: ${{ steps.get_tag.outputs.TARGET_IMAGE_TAG }}
secrets:
npm_auth_token: ${{ secrets.npm_token }}

- name: Publish Release Version
if: ${{ steps.get_branch.outputs.BRANCH_NAME == 'main' }}
Expand Down

0 comments on commit 88576ce

Please sign in to comment.