diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1ff0ebf27..cbc6788d2 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,12 +28,38 @@ jobs: - name: Checkout code uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - - name: Setup workflow - uses: ./.github/actions/setup + - name: Setup pnpm + uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 + with: + version: 9 + run_install: false - - name: Install and build package + - name: Setup node + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 + with: + node-version-file: '.nvmrc' + registry-url: https://registry.npmjs.org + cache: 'pnpm' + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install package run: | pnpm --filter-prod ${{ matrix.package-name }}... install + + - name: Build package + run: | pnpm --filter ${{ matrix.package-name }}... build - name: Publish package diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 7296ceff5..1b295a29b 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@hop-protocol/sdk", - "version": "0.0.20", + "version": "0.0.21", "description": "The v1 Hop Protocol TypeScript SDK", "author": "Authereum Labs, Inc.", "license": "MIT",