Wasm Create Release PR #78
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 Create Release PR | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version to release Wasm under (e.g. `1.2.3`)' | |
required: true | |
release-type: | |
description: Create a `main` or a pre-release. If anything other then `main` is selected, a postfix and auto-incrementing number will be added automatically (e.g. `1.2.3-dev.x`)' | |
type: choice | |
required: true | |
options: | |
- alpha | |
- beta | |
- rc | |
- dev | |
- main | |
jobs: | |
create-dev-release-pr: | |
if: github.event.inputs.release-type != 'main' | |
# 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-create-dev-release-pr.yml@main | |
with: | |
tag-prefix: wasm-v | |
tag-postfix: -${{ github.event.inputs.release-type }}. | |
tag-base: ${{ github.event.inputs.version }} | |
main-tag-regex: ^wasm-v[0-9]+\.[0-9]+\.[0-9]+$ | |
changelog-config-path: ./bindings/wasm/.github_changelog_generator | |
changelog-path: ./bindings/wasm/CHANGELOG.md | |
pr-body-text: On merge a pre-release will be published to npm. | |
release-target: wasm | |
secrets: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
create-main-release-pr: | |
if: github.event.inputs.release-type == 'main' | |
# 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-create-main-release-pr.yml@main | |
with: | |
tag-prefix: wasm-v | |
tag-base: ${{ github.event.inputs.version }} | |
main-tag-regex: ^wasm-v[0-9]+\.[0-9]+\.[0-9]+$ | |
changelog-config-path: ./bindings/wasm/.github_changelog_generator | |
changelog-path: ./bindings/wasm/CHANGELOG.md | |
release-target: wasm | |
secrets: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |