Release wallet-sdk-ts #69
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: Release wallet-sdk-ts | |
on: | |
workflow_call: | |
inputs: | |
release_candidate: | |
description: 'Release candidate' | |
default: true | |
required: true | |
type: boolean | |
workflow_dispatch: | |
inputs: | |
release_candidate: | |
description: 'Release candidate' | |
default: true | |
required: true | |
type: boolean | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
token: ${{ secrets.IDENTUS_CI }} | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "lts/*" | |
registry-url: 'https://registry.npmjs.org/' | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Install wasm-pack | |
run: | | |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- uses: crazy-max/ghaction-import-gpg@v5 | |
id: import_gpg | |
with: | |
gpg_private_key: ${{ secrets.HYP_BOT_GPG_PRIVATE }} | |
passphrase: ${{ secrets.HYP_BOT_GPG_PASSWORD }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
git_config_global: true | |
git_tag_gpgsign: false | |
- name: Release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
GIT_AUTHOR_EMAIL: ${{ steps.import_gpg.outputs.email }} | |
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }} | |
GIT_AUTHOR_NAME: ${{ steps.import_gpg.outputs.name }} | |
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }} | |
run: | | |
npm install && npm i @rollup/rollup-linux-x64-gnu | |
npx semantic-release -e ./release.config.js |