Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: Release

on:
workflow_dispatch:
inputs:
initial_release:
description: Create the initial Mantle 3.4.0 release without calculating a version bump.
required: false
default: false
type: boolean

permissions:
contents: read
Expand Down Expand Up @@ -62,20 +56,14 @@ jobs:
git config user.email "${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
- name: Prepare release
env:
INITIAL_RELEASE: ${{ inputs.initial_release }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
if [ "$INITIAL_RELEASE" = "true" ]; then
echo "Initial Mantle Flex release." > RELEASE_NOTES.md
else
node ./scripts/release.js
node ./scripts/sync-release-version.js
fi
node ./scripts/release.js
node ./scripts/sync-release-version.js
VERSION="$(node -p "require('./package.json').version")"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
id: version
- name: Commit release changes
if: inputs.initial_release != true
env:
VERSION: ${{ steps.version.outputs.version }}
run: |
Expand All @@ -86,14 +74,7 @@ jobs:
VERSION: ${{ steps.version.outputs.version }}
run: git tag -a "v$VERSION" -m "v$VERSION"
- name: Push release
env:
INITIAL_RELEASE: ${{ inputs.initial_release }}
run: |
if [ "$INITIAL_RELEASE" = "true" ]; then
git push origin "v${{ steps.version.outputs.version }}"
else
git push --follow-tags origin HEAD:main
fi
run: git push --follow-tags origin HEAD:main
- name: Create GitHub Release
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
Expand Down
Loading