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 cfed98b commit 4be829a
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/Build and Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,30 @@ jobs:
BRANCH_NAME: ${{ steps.get_branch.outputs.BRANCH_NAME }}
TARGET_IMAGE_TAG: ${{ steps.get_tag.outputs.TARGET_IMAGE_TAG }}



publish_release:
needs: build
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:
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.BRANCH_NAME }}
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_release:
# needs: build

# name: Publish Release Version
# if: ${{ BRANCH_NAME == 'main' }}
# uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
# with:
# install_cmd: npm ci
# secrets:
# npm_auth_token: ${{ secrets.npm_token }}



Expand Down

0 comments on commit 4be829a

Please sign in to comment.