Skip to content

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Sep 7, 2023
1 parent 1490a94 commit d686f59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- alpha
- beta

jobs:
run-tests:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- alpha
- beta

# Allow workflow to be called by another workflow
workflow_call:
Expand Down Expand Up @@ -44,7 +45,8 @@ jobs:

- name: Publish package preview
id: package-preview
if: github.event_name == 'pull_request'
# Do not run for `alpha` or `beta` branches
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/alpha' && github.ref != 'refs/heads/beta' }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}
run: |
Expand Down Expand Up @@ -84,7 +86,8 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT
- name: Provide preview link info
if: ${{ steps.package-preview.outputs.npm_instructions != '' }}
# Do not run for `alpha` or `beta` branches
if: ${{ steps.package-preview.outputs.npm_instructions != '' && github.ref != 'refs/heads/alpha' && github.ref != 'refs/heads/beta' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr_preview_consumption
Expand Down

0 comments on commit d686f59

Please sign in to comment.