Skip to content

Commit

Permalink
upload artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
darioAnongba committed Dec 17, 2024
1 parent 089adec commit 5c636c6
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
required: true

jobs:
publish-release:
build-release:
permissions:
contents: write
runs-on: ubuntu-latest
Expand All @@ -26,23 +26,23 @@ jobs:
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab
- name: Build
run: wasm-pack build --scope metamask --features "esplora"
- name: Upload WASM build
uses: actions/upload-artifact@v4
with:
name: wasm-pkg
path: pkg

publish-npm-dry-run:
needs: publish-release
needs: build-release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: ${{ github.sha }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96
with:
toolchain: stable
- name: Install wasm-pack
run: curl https://raw.githubusercontent.com/rustwasm/wasm-pack/a3a48401795cd4b3afe1d74568c93675a04f3970/installer/init.sh -sSf | sh -s -- -f
- name: Rust Cache
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab
- name: Download WASM build
uses: actions/download-artifact@v4
with:
name: wasm-pkg
path: pkg
- name: Dry Run Publish
run: wasm-pack publish -- --dry-run

Expand All @@ -52,16 +52,12 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.sha }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96
with:
toolchain: stable
- name: Install wasm-pack
run: curl https://raw.githubusercontent.com/rustwasm/wasm-pack/a3a48401795cd4b3afe1d74568c93675a04f3970/installer/init.sh -sSf | sh -s -- -f
- name: Rust Cache
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab
- name: Download WASM build
uses: actions/download-artifact@v4
with:
name: wasm-pkg
path: pkg
- name: Publish
run: wasm-pack publish

0 comments on commit 5c636c6

Please sign in to comment.