Skip to content

Commit 3374682

Browse files
Update release.yml
1 parent 3c23164 commit 3374682

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ jobs:
3838
- name: Build
3939
run: npm run build
4040

41-
- name: Lint
42-
run: npm run lint
43-
44-
- name: Test
45-
run: npm run test
46-
4741
- name: Configure Git
4842
run: |
4943
git config user.name "github-actions[bot]"
@@ -67,8 +61,15 @@ jobs:
6761
- name: Publish to npm
6862
id: publish
6963
run: |
64+
set +e
7065
OUTPUT=$(npx changeset publish 2>&1)
66+
EXIT_CODE=$?
7167
echo "$OUTPUT"
68+
set -e
69+
if [ $EXIT_CODE -ne 0 ]; then
70+
echo "::error::Changeset publish failed with exit code $EXIT_CODE"
71+
exit $EXIT_CODE
72+
fi
7273
# Extract published packages for PR comment
7374
PUBLISHED=$(echo "$OUTPUT" | grep -E "^@walkeros/|^walkeros" | head -20 || true)
7475
echo "published<<EOF" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)