Skip to content

Commit

Permalink
chore: cleanup release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyzif committed Oct 28, 2024
1 parent a2890d8 commit 24ff72f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
confirm:
description: "If this is a release from main, have you confirmed alignment in #aquarium? Type 'yes' or 'n/a' to 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:
Expand All @@ -21,14 +21,12 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

steps:
# Checkout the latest code from the main branch with full history
- name: Checkout public main branch
uses: actions/checkout@v4
with:
token: ${{ secrets.MP_SEMANTIC_RELEASE_BOT }}
fetch-depth: 0

# Import GPG key for signed commits and tags
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v4
with:
Expand All @@ -37,30 +35,21 @@ jobs:
git_user_signingkey: true
git_commit_gpgsign: true

# Set up Node.js environment
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'

# Install project dependencies
- name: Install Dependencies
run: npm ci

# Build the project to prepare for release
- name: Build dist
run: npm run build-dist

# Run semantic-release to create a new release
- name: Release
run: |
# Enable debug mode to get detailed logs from semantic-release
export DEBUG="semantic-release:*"
# Run semantic-release to handle versioning and release
npx semantic-release
# Archive npm failure logs for debugging in case of errors
- name: Archive npm failure logs
uses: actions/upload-artifact@v3
if: failure()
Expand Down

0 comments on commit 24ff72f

Please sign in to comment.