Reenable legacy Firefox CDP support #599
Workflow file for this run
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: Wasm Automatic Release and Publish | |
# Automatically publishes the latest Wasm bindings version to npm when a release PR is merged. | |
# Does NOT create a GitHub release. | |
on: | |
pull_request: | |
branches: | |
- main | |
- support/wasm-v* | |
types: [closed] | |
jobs: | |
call-create-release-workflow: | |
if: github.event.pull_request.merged == true | |
# owner/repository of workflow has to be static, see https://github.community/t/env-variables-in-uses/17466 | |
uses: iotaledger/identity.rs/.github/workflows/shared-release.yml@main | |
with: | |
changelog-config-path: ./bindings/wasm/.github_changelog_generator | |
pre-release-tag-regex: ^wasm-v[0-9]+\.[0-9]+\.[0-9]+-(?<pre_release>\w+)\.\d+$ | |
main-release-tag-regex: ^wasm-v[0-9]+\.[0-9]+\.[0-9]+$ | |
create-github-release: false | |
secrets: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
build-wasm: | |
needs: call-create-release-workflow | |
if: ${{ needs.call-create-release-workflow.outputs.is-release }} | |
# owner/repository of workflow has to be static, see https://github.community/t/env-variables-in-uses/17466 | |
uses: iotaledger/identity.rs/.github/workflows/shared-build-wasm.yml@main | |
with: | |
output-artifact-name: identity-wasm-bindings-build | |
release-wasm: | |
if: ${{ needs.call-create-release-workflow.outputs.is-release }} | |
runs-on: ubuntu-latest | |
needs: [call-create-release-workflow, build-wasm] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Release to npm | |
uses: './.github/actions/publish/publish-wasm' | |
with: | |
input-artifact-name: identity-wasm-bindings-build | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
tag: ${{ needs.call-create-release-workflow.outputs.is-pre-release && needs.call-create-release-workflow.outputs.pre-release-identifier }} |