Skip to content

Commit

Permalink
Test publish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 committed Mar 14, 2024
1 parent 43e03d7 commit 5dd8458
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5dd8458

Please sign in to comment.