Skip to content

Commit

Permalink
Testing complete
Browse files Browse the repository at this point in the history
  • Loading branch information
jimid27 committed Jan 19, 2024
1 parent 2a6dee6 commit b30c9f1
Showing 1 changed file with 36 additions and 50 deletions.
86 changes: 36 additions & 50 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,32 @@ runs:
run: npm run build
shell: bash

- name: Publish Package to NPM
id: publish
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ inputs.NPM_TOKEN }}
strategy: upgrade
access: public

- name: Create Release
if: ${{ steps.publish.outputs.type }}
env:
GH_TOKEN: ${{ inputs.GITHUB_TOKEN }}
tag: ${{ steps.publish.outputs.version }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="Release ${tag#v}" \
--generate-notes
shell: bash

- name: Trigger Nebula UI NPM Package Update
# if: |
# ${{ inputs.UPDATE_DOWNSTREAM_REPOS == 'true' }} && ${{ steps.publish.outputs.type }}
if: |
${{ inputs.UPDATE_DOWNSTREAM_REPOS == 'true' }} && ${{ steps.publish.outputs.type }}
env:
GITHUB_TOKEN: ${{ inputs.NEBULA_UI_ACTIONS_RW_TOKEN }}
tag: "2.0.3"
tag: ${{ steps.publish.outputs.version }}
run: |
gh workflow run npm_update_latest_prefect.yaml \
--repo=prefecthq/nebula-ui \
Expand All @@ -49,50 +69,16 @@ runs:
-f package_version="$tag"
shell: bash

# - name: Publish Package to NPM
# id: publish
# uses: JS-DevTools/npm-publish@v2
# with:
# token: ${{ inputs.NPM_TOKEN }}
# strategy: upgrade
# access: public

# - name: Create Release
# if: ${{ steps.publish.outputs.type }}
# env:
# GH_TOKEN: ${{ inputs.GITHUB_TOKEN }}
# tag: ${{ steps.publish.outputs.version }}
# run: |
# gh release create "$tag" \
# --repo="$GITHUB_REPOSITORY" \
# --title="Release ${tag#v}" \
# --generate-notes
# shell: bash

# - name: Trigger Nebula UI NPM Package Update
# if: |
# ${{ inputs.UPDATE_DOWNSTREAM_REPOS == 'true' }} && ${{ steps.publish.outputs.type }}
# env:
# GITHUB_TOKEN: ${{ inputs.NEBULA_UI_ACTIONS_RW_TOKEN }}
# tag: ${{ steps.publish.outputs.version }}
# run: |
# gh workflow run npm_update_latest_prefect.yaml \
# --repo=prefecthq/nebula-ui \
# --ref=main \
# -f package_name="$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')" \
# -f package_version="$tag"
# shell: bash

# - name: Trigger Prefect OSS NPM Package Update
# if: |
# ${{ inputs.UPDATE_DOWNSTREAM_REPOS == 'true' }} && ${{ steps.publish.outputs.type }}
# env:
# GITHUB_TOKEN: ${{ inputs.PREFECT_OSS_ACTIONS_RW_TOKEN }}
# tag: ${{ steps.publish.outputs.version }}
# run: |
# gh workflow run npm_update_latest_prefect.yaml \
# --repo=prefecthq/prefect \
# --ref=main \
# -f package_name="$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')" \
# -f package_version="$tag"
# shell: bash
- name: Trigger Prefect OSS NPM Package Update
if: |
${{ inputs.UPDATE_DOWNSTREAM_REPOS == 'true' }} && ${{ steps.publish.outputs.type }}
env:
GITHUB_TOKEN: ${{ inputs.PREFECT_OSS_ACTIONS_RW_TOKEN }}
tag: ${{ steps.publish.outputs.version }}
run: |
gh workflow run npm_update_latest_prefect.yaml \
--repo=prefecthq/prefect \
--ref=main \
-f package_name="$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')" \
-f package_version="$tag"
shell: bash

0 comments on commit b30c9f1

Please sign in to comment.