From 5dd845835f1fe46482bb6d427f271e1f7d748c6f Mon Sep 17 00:00:00 2001 From: Gabe Rodriguez Date: Thu, 14 Mar 2024 10:31:52 +0100 Subject: [PATCH] Test publish flow --- .github/workflows/test-release.yml | 47 ++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/test-release.yml diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml new file mode 100644 index 0000000000..9d98ade807 --- /dev/null +++ b/.github/workflows/test-release.yml @@ -0,0 +1,47 @@ +# Publishes extension to chrome web store when a release is made in github. + +# `maniftest.json` should already be updated to the desired version before release. +# make sure download-proving-keys contains the correct version tag. + +# https://chrome.google.com/webstore/detail/penumbra-wallet/lkpmkhpnhknhmibgnmmhdhgdilepfghe +name: Test Publish flow + +# Temp for testing +on: + workflow_call: + workflow_dispatch: + pull_request: + +jobs: + turbo-compile: + name: Compile + uses: ./.github/workflows/compile-wasm.yml + + publish: + environment: ext-publish + runs-on: buildjet-16vcpu-ubuntu-2204 + needs: turbo-compile + + steps: + - uses: actions/checkout@v4 + - uses: buildjet/cache@v3 + with: + path: .turbo + restore-keys: ${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-compiled + - uses: pnpm/action-setup@v2 + - uses: buildjet/setup-node@v4 + with: + node-version: '21' + cache: 'pnpm' + - run: pnpm install --frozen-lockfile + - uses: dtolnay/rust-toolchain@stable + with: + targets: wasm32-unknown-unknown + - uses: jetli/wasm-pack-action@v0.4.0 # preinstall wasm-pack + with: + version: 'latest' + - run: pnpm turbo telemetry disable + - run: pnpm turbo download-keys --force --cache-dir=.turbo + - run: pnpm turbo build --cache-dir=.turbo + - name: Package up extension + run: zip -r dist.zip apps/extension/dist