Skip to content

Commit 0e57595

Browse files
committed
changeset PR check skip
1 parent e270fb7 commit 0e57595

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/changesets.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
23-
with:
24-
token: ${{ secrets.CHANGESETS_TOKEN }}
2523

2624
- name: Setup pnpm
2725
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
@@ -42,8 +40,9 @@ jobs:
4240
version: pnpm run version
4341
title: 'Next Release: changelog and version packages'
4442
commit: 'chore: version packages'
43+
labels: release
4544
env:
46-
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4746

4847
- name: Trigger publish workflow
4948
if: steps.changesets.outputs.hasChangesets == 'false'

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ env:
2222

2323
jobs:
2424
test:
25+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'release') }}
2526
runs-on: ubuntu-latest
2627

2728
strategy:
@@ -124,3 +125,15 @@ jobs:
124125
packages/b2c-tooling-sdk/coverage/
125126
packages/b2c-cli/coverage/
126127
retention-days: 30
128+
129+
ci-gate:
130+
if: always()
131+
needs: [test]
132+
runs-on: ubuntu-latest
133+
steps:
134+
- name: Check results
135+
run: |
136+
if [[ "${{ needs.test.result }}" == "success" || "${{ needs.test.result }}" == "skipped" ]]; then
137+
exit 0
138+
fi
139+
exit 1

0 commit comments

Comments
 (0)