Skip to content

chore(sdk): release @chainflip/sdk/v1.4.0-alpha.3 (#770) #180

chore(sdk): release @chainflip/sdk/v1.4.0-alpha.3 (#770)

chore(sdk): release @chainflip/sdk/v1.4.0-alpha.3 (#770) #180

name: NPM Publich CI 🛰️
concurrency:
group: npm-publish-ci
cancel-in-progress: false
on:
push:
branches:
- main
paths:
- 'packages/cli/package.json'
- 'packages/sdk/package.json'
permissions:
packages: write
contents: read
jobs:
check-commit:
uses: ./.github/workflows/_utils_check_commit_message.yml
get-node-version:
needs: [check-commit]
if: needs.check-commit.outputs.publish-cli == 'true' || needs.check-commit.outputs.publish-sdk == 'true'
uses: ./.github/workflows/_node_context.yml
debug:
needs: [check-commit]
runs-on: ubuntu-latest
steps:
- run: |
echo "${{ needs.check-commit.outputs.publish-cli }}"
echo "${{ needs.check-commit.outputs.publish-sdk }}"
pre-checks-cli:
needs: [check-commit]
if: needs.check-commit.outputs.publish-cli == 'true'
uses: ./.github/workflows/_01_pre_checks.yml
with:
package: cli
secrets: inherit
checks-cli:
needs: [pre-checks-cli]
uses: ./.github/workflows/_02_checks.yml
with:
package: cli
secrets: inherit
publish-cli:
needs: [get-node-version, checks-cli]
uses: ./.github/workflows/_npm_publish.yml
with:
node_version: ${{ needs.get-node-version.outputs.node_version }}
package_registry: 'https://registry.npmjs.org'
package_scope: '@chainflip-io'
build_cmd: pnpm --filter @chainflip/cli build
publish_cmd: pnpm --filter @chainflip/cli publish
secrets:
node_auth_token: ${{ secrets.CF_NPM_JS_PACKAGES_READ_WRITE }}
pre-checks-sdk:
needs: [check-commit]
if: needs.check-commit.outputs.publish-sdk == 'true'
uses: ./.github/workflows/_01_pre_checks.yml
with:
package: sdk
secrets: inherit
checks-sdk:
needs: [pre-checks-sdk]
uses: ./.github/workflows/_02_checks.yml
with:
package: sdk
secrets: inherit
publish-sdk:
needs: [get-node-version, checks-sdk]
uses: ./.github/workflows/_npm_publish.yml
with:
node_version: ${{ needs.get-node-version.outputs.node_version }}
package_registry: 'https://registry.npmjs.org'
package_scope: '@chainflip-io'
build_cmd: pnpm --filter @chainflip/sdk build
publish_cmd: pnpm --filter @chainflip/sdk publish
secrets:
node_auth_token: ${{ secrets.CF_NPM_JS_PACKAGES_READ_WRITE }}