Skip to content

Commit

Permalink
chore: without changeset (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatomyr committed Aug 1, 2023
1 parent 1ed1839 commit 948b29d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/test-changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on:
branches:
- chore/add-chagesets

concurrency: ${{ github.workflow }}-${{ github.ref }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
name: Release
runs-on: ubuntu-latest
outputs:
published: ${{ steps.changesets.outputs.published }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -38,3 +42,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Check if changesets were published
if: steps.changesets.outputs.published == 'true'
run: echo "PUBLISHED -- FROM THE SAME JOB"

test-if-published:
needs: [release]
if: needs.release.outputs.published == 'true'
runs-on: ubuntu-latest
steps:
- name: Test if published
run: echo "PUBLISHED -- FROM A DIFFERENT JOB"

0 comments on commit 948b29d

Please sign in to comment.