Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# NPM_TOKEN will only be populated in the context of the `publish` GH environment, see L14
# Dry run job split as a separate job to conditionally omit `environment`

name: Publish to NPM
Expand Down Expand Up @@ -43,19 +42,31 @@ jobs:
shell: bash

- name: Publish ccip-js to NPM
id: publish-ccip-js
continue-on-error: true
run: |
pnpm build-ccip-js
cd packages/ccip-js
pnpm publish --no-git-checks --access public
shell: bash

- name: Publish ccip-react-components to NPM
id: publish-components
continue-on-error: true
run: |
pnpm build-components
cd packages/ccip-react-components
pnpm publish --no-git-checks --access public
shell: bash

- name: Check publish results
if: steps.publish-ccip-js.outcome == 'failure' || steps.publish-components.outcome == 'failure'
run: |
echo "::error::ccip-js publish: ${{ steps.publish-ccip-js.outcome }}"
echo "::error::ccip-react-components publish: ${{ steps.publish-components.outcome }}"
exit 1
shell: bash

dry-run-publish:
if: github.ref_name != 'main'
runs-on: ubuntu-latest
Expand Down
Loading