Skip to content

Commit

Permalink
ci: skip preview publish
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Dec 8, 2024
1 parent 1871c59 commit 9cc03fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
timeout-minutes: 20
env:
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}
steps:
- name: Remove preview consumption comment
if: ${{ github.event_name == 'pull_request' && env.GITHUB_TOKEN != '' }}
Expand Down Expand Up @@ -58,9 +59,9 @@ jobs:
- name: Publish package preview
id: package-preview
# Do not run for `alpha` or `beta` branches
if: github.event_name == 'pull_request' && (github.actor != 'renovate[bot]' || contains(github.event.pull_request.labels.*.name, 'create preview package')) && !contains(github.head_ref || github.ref_name, 'alpha') && !contains(github.head_ref || github.ref_name, 'beta')
if: github.event_name == 'pull_request' && env.NPM_TOKEN != '' && (github.actor != 'renovate[bot]' || contains(github.event.pull_request.labels.*.name, 'create preview package')) && !contains(github.head_ref || github.ref_name, 'alpha') && !contains(github.head_ref || github.ref_name, 'beta')
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}
NPM_TOKEN: ${{ env.NPM_TOKEN }}
run: |
git config user.email "[email protected]"
git config user.name "Kong UI Bot"
Expand Down

0 comments on commit 9cc03fe

Please sign in to comment.