Skip to content

Commit f35a626

Browse files
chore: Improve release pipeline (#72)
* fix: release pipeline removed teh wrong tags Signed-off-by: Christian Kreuzberger <[email protected]> * chore: use gh actions as username, sign the commit Signed-off-by: Christian Kreuzberger <[email protected]>
1 parent 238238c commit f35a626

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/pre-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
with:
3636
node-version: ${{ env.NODE_VERSION }}
3737

38-
- name: Configure Git # Using github.actor - whoever starts the pre-release workflow will own the tag
38+
- name: Configure Git
3939
run: |
40-
git config user.name "${{ github.actor }}"
41-
git config user.email "${{ github.actor }}@users.noreply.github.com"
40+
git config user.name "GitHub Action"
41+
git config user.email "action@github.com"
4242
4343
- name: Prepare GitHub Release Notes
4444
run: |

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ jobs:
3434
with:
3535
node-version: ${{ env.NODE_VERSION }}
3636

37-
- name: Configure Git # Using github.actor - whoever starts the pre-release workflow will own the tag
37+
- name: Configure Git
3838
run: |
39-
git config user.name "${{ github.actor }}"
40-
git config user.email "${{ github.actor }}@users.noreply.github.com"
39+
git config user.name "GitHub Action"
40+
git config user.email "action@github.com"
4141
4242
- name: Prepare GitHub Release Notes
4343
run: |
4444
# Delete pre-release tags to be able to generate a changelog from last 'real' release LOCALLY
4545
# This is a workaround for a known limitation of standard-version
4646
# Reference: https://github.com/conventional-changelog/standard-version/issues/203#issuecomment-872415140
47-
git tag -l | grep -vE '^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$' | xargs git tag -d
47+
git tag -l | grep -vE '^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$' | xargs git tag -d
4848
4949
# generate release notes into RELEASE_NOTES_FILE
5050
npx standard-version@^9.3.1 -i "${{ env.RELEASE_NOTES_FILE }}" --skip.commit --skip.tag --header ""
@@ -56,7 +56,7 @@ jobs:
5656
run: |
5757
echo "🚀 Creating release package now..."
5858
# this will generate a commit and a tag
59-
npx standard-version@^9.3.1
59+
npx standard-version@^9.3.1 --sign
6060
6161
echo "::set-output name=tag-name::$(git describe --tags --abbrev=0)"
6262

0 commit comments

Comments
 (0)