Release Aquarium #238
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 Aquarium | |
on: | |
workflow_dispatch: | |
inputs: | |
confirm: | |
description: "In case that's a release from main, have you aligned in #aquarium? Type 'yes' or 'n/a' to confirm." | |
required: true | |
jobs: | |
release: | |
name: Perform Release | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.MP_SEMANTIC_RELEASE_BOT }} | |
GIT_AUTHOR_NAME: mparticle-automation | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: mparticle-automation | |
GIT_COMMITTER_EMAIL: [email protected] | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- name: Checkout public main branch | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.MP_SEMANTIC_RELEASE_BOT }} | |
fetch-depth: 0 | |
- name: Import GPG Key | |
uses: crazy-max/ghaction-import-gpg@v4 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build dist | |
run: npm run build-dist | |
- name: Release | |
run: | | |
npx semantic-release | |
- name: Archive npm failure logs | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: npm-logs | |
path: ~/.npm/_logs |