Wasm publish to npm #4
Workflow file for this run
This file contains hidden or 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: Wasm publish to npm | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: "Tag to publish Wasm under (e.g. e.g. `dev`, will default to `latest`)" | |
| required: true | |
| branch: | |
| description: "Branch to run publish from" | |
| required: true | |
| dry-run: | |
| description: "Run in dry-run mode" | |
| type: boolean | |
| required: false | |
| default: true | |
| jobs: | |
| build-wasm: | |
| uses: "./.github/workflows/shared-build-wasm.yml" | |
| with: | |
| run-unit-tests: false | |
| ref: ${{ github.event.inputs.branch }} | |
| output-artifact-name: notarization-wasm-bindings-build | |
| release-wasm: | |
| runs-on: ubuntu-latest | |
| needs: [build-wasm] | |
| environment: release | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.event.inputs.branch }} | |
| - name: Release to npm | |
| uses: "./.github/actions/publish/wasm" | |
| with: | |
| dry-run: ${{ github.event.inputs.dry-run }} | |
| input-artifact-name: notarization-wasm-bindings-build | |
| npm-token: ${{ secrets.NPM_NOTARIZATION_TOKEN }} | |
| working-directory: ./bindings/wasm/notarization_wasm | |
| tag: ${{ github.event.inputs.tag }} |