Release wallet-sdk-ts #53
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: 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: | |
token: ${{ secrets.ATALA_GITHUB_TOKEN }} | |
submodules: 'true' | |
- 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.GPG_PRIVATE_KEY }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.ATALA_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 | |
if [[ "${{ inputs.release_candidate }}" == "true" ]]; then | |
npx semantic-release -e ./release-dev.config.js | |
else | |
npx semantic-release -e ./release-prod.config.js | |
fi |