Merge pull request #47 from BitGo/BTC-1451.add-updateoutputwithdescri… #34
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: Publish @wasm-miniscript | |
on: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
publish: | |
name: Publish Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: nightly | |
- name: Install wasm-pack | |
run: | | |
cargo install wasm-pack | |
- name: Build Info | |
run: | | |
echo "node $(node --version)" | |
echo "npm $(npm --version)" | |
echo "rust $(rustup --version)" | |
git --version | |
- name: Configure NPM | |
run: | | |
echo "workspaces-update = false" >> .npmrc | |
echo "@bitgo:registry=https://registry.npmjs.org" >> .npmrc | |
echo "//registry.npmjs.org/:always-auth=true" >> .npmrc | |
- name: Install Packages | |
run: npm ci --workspaces --include-workspace-root | |
- name: build packages | |
run: npm --workspaces run build | |
- name: Unit Test | |
run: npm --workspaces test | |
- name: Release | |
run: npx multi-semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |