-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
328d2b9
commit dca5c0f
Showing
2 changed files
with
7 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
name: New release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump-level: | ||
description: "Version level to be bumped" | ||
required: true | ||
default: bug | ||
type: choice | ||
options: | ||
- bug | ||
- feature | ||
- major | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
|
@@ -20,31 +12,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node 16 | ||
uses: actions/setup-node@v3 | ||
- uses: google-github-actions/release-please-action@v3 | ||
with: | ||
node-version: 16 | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Get current version | ||
id: package_version | ||
uses: martinbeentjes/npm-get-version-action@main | ||
with: | ||
path: idkit | ||
|
||
- name: Calculate next version | ||
uses: christian-draeger/[email protected] | ||
id: bump_version | ||
with: | ||
current-version: ${{ steps.package_version.outputs.current-version }} | ||
version-fragment: ${{ github.event.inputs.bump-level }} | ||
|
||
- name: Release | ||
run: | | ||
npx release-please release-pr \ | ||
--token=${{ secrets.GITHUB_TOKEN }} \ | ||
--repo-url=${{ github.repository }} \ | ||
--release-as=${{ steps.bump_version.outputs.next-version }} | ||
command: manifest |
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