fix(client): uncaught storage exception with incompatible runtime (#424) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/cache@v3 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}-20.x-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-20.x-turbo- | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
registry-url: https://registry.npmjs.org | |
- name: Install deps | |
run: pnpm install | |
- name: Build | |
run: pnpm turbo build --cache-dir=.turbo | |
- name: Lint | |
run: pnpm lint | |
- name: Test | |
run: pnpm test | |
- name: Run Integration Tests | |
run: pnpm test:ci | |
publish: | |
needs: [build] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
value: | |
[ | |
cli, | |
client, | |
codegen, | |
known-chains, | |
json-rpc/json-rpc-provider, | |
json-rpc/json-rpc-provider-proxy, | |
json-rpc/logs-provider, | |
json-rpc/sm-provider, | |
json-rpc/ws-provider, | |
metadata-builders, | |
signers/pjs-signer, | |
signers/polkadot-signer, | |
signers/signer, | |
smoldot, | |
substrate-bindings, | |
substrate-client, | |
utils, | |
view-builder, | |
observable-client, | |
] | |
steps: | |
- uses: actions/[email protected] | |
- name: Check if version has been updated | |
id: check | |
uses: EndBug/version-check@v2 | |
with: | |
diff-search: true | |
file-name: ./packages/${{ matrix.value }}/package.json | |
- uses: actions/cache@v3 | |
if: steps.check.outputs.changed == 'true' | |
with: | |
path: .turbo | |
key: ${{ runner.os }}-20.x-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-20.x-turbo- | |
- uses: pnpm/action-setup@v2 | |
if: steps.check.outputs.changed == 'true' | |
with: | |
version: 8 | |
- name: Setup Node.js 20.x | |
if: steps.check.outputs.changed == 'true' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
registry-url: https://registry.npmjs.org | |
- name: Install deps | |
if: steps.check.outputs.changed == 'true' | |
run: pnpm install | |
- name: Build | |
if: steps.check.outputs.changed == 'true' | |
run: pnpm turbo build --cache-dir=.turbo | |
- name: Publish | |
if: steps.check.outputs.changed == 'true' | |
working-directory: packages/${{ matrix.value }} | |
run: | | |
pnpm publish --no-git-checks --access=public --tag latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }} |