-
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
01b1711
commit cabbcf0
Showing
2 changed files
with
55 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: GitFlow Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install git flow extensions | ||
run: | | ||
sudo apt-get install git-flow | ||
- name: Initialize git config | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email [email protected] | ||
- name: Read properties from package.json | ||
id: package_json | ||
uses: zoexx/[email protected] | ||
with: | ||
file_path: package.json | ||
|
||
#- run: npm ci | ||
#- run: npm run test:unit | ||
#- run: npm run build | ||
|
||
- run: git flow init --defaults | ||
- run: git flow release start ${{ steps.package_json.outputs.version }} | ||
- run: git flow release finish ${{ steps.package_json.outputs.version }} --push --message "Release" | ||
|
||
- name: set next version | ||
run: | | ||
npm --no-git-tag-version version patch | ||
git add package.json package-lock.json | ||
git commit --message "set next version" | ||
git push | ||
- name: Checkout tag | ||
run: | | ||
git checkout tags/${{ steps.package_json.outputs.version }} | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
generateReleaseNotes: true |
This file was deleted.
Oops, something went wrong.