Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Commit b55cb55

Browse files
authored
Merge pull request #54 from smartcontractkit/ci-fix-publish
Don't immediately stop if publishing a package fails
2 parents fa3d520 + f427e47 commit b55cb55

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# NPM_TOKEN will only be populated in the context of the `publish` GH environment, see L14
21
# Dry run job split as a separate job to conditionally omit `environment`
32

43
name: Publish to NPM
@@ -43,19 +42,31 @@ jobs:
4342
shell: bash
4443

4544
- name: Publish ccip-js to NPM
45+
id: publish-ccip-js
46+
continue-on-error: true
4647
run: |
4748
pnpm build-ccip-js
4849
cd packages/ccip-js
4950
pnpm publish --no-git-checks --access public
5051
shell: bash
5152

5253
- name: Publish ccip-react-components to NPM
54+
id: publish-components
55+
continue-on-error: true
5356
run: |
5457
pnpm build-components
5558
cd packages/ccip-react-components
5659
pnpm publish --no-git-checks --access public
5760
shell: bash
5861

62+
- name: Check publish results
63+
if: steps.publish-ccip-js.outcome == 'failure' || steps.publish-components.outcome == 'failure'
64+
run: |
65+
echo "::error::ccip-js publish: ${{ steps.publish-ccip-js.outcome }}"
66+
echo "::error::ccip-react-components publish: ${{ steps.publish-components.outcome }}"
67+
exit 1
68+
shell: bash
69+
5970
dry-run-publish:
6071
if: github.ref_name != 'main'
6172
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)