Skip to content

Commit

Permalink
feat(ci): add the option to select a custom version of the release
Browse files Browse the repository at this point in the history
  • Loading branch information
okineadev committed Jan 14, 2025
1 parent 6e8c6fe commit efbcce8
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: πŸš€ Release + Publish

on: [workflow_dispatch]
on:
workflow_dispatch:
inputs:
version:
description: 'Version to release (e.g. 1.2.3)'
type: string
required: false

permissions:
id-token: write
Expand Down Expand Up @@ -34,7 +40,6 @@ jobs:
- name: πŸ“¦ Install dependencies
run: |
bun install --frozen-lockfile
bun add -g npm
- name: πŸ”§ Configure Git
run: |
Expand All @@ -46,9 +51,13 @@ jobs:
run: bun run preversion

- name: πŸ“œ Generate changelog and release notes
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
# Don't run husky on git commit
HUSKY: 0
run: |
HUSKY=0 bunx changelogen --release --push
HUSKY=0 bunx changelogen github release --token ${{ secrets.GITHUB_TOKEN }}
bunx changelogen --release --push -r $RELEASE_VERSION
bunx changelogen github release --token ${{ secrets.GITHUB_TOKEN }} -r $RELEASE_VERSION
- name: πŸ“ Get metadata
run: |
Expand Down

0 comments on commit efbcce8

Please sign in to comment.