Merge pull request #21 from BitGo/re-enable-push #11
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 }} | |
permissions: | |
contents: write | |
jobs: | |
publish: | |
name: Publish Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- 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 "yarn $(yarn --version)" | |
echo "rust $(rustup --version)" | |
git --version | |
- name: Configure Git & NPM | |
run: | | |
git config --global user.name 'Git bot' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
echo "@bitgo:registry=https://registry.npmjs.org" >> .npmrc | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc | |
echo "//registry.npmjs.org/:always-auth=true" >> .npmrc | |
- name: Install Packages | |
run: yarn install --with-frozen-lockfile | |
- name: build packages | |
run: yarn lerna run build | |
- name: Lerna Publish | |
run: yarn lerna publish --force-publish --include-merged-tags --conventional-commits --yes --loglevel silly |