Skip to content

Commit a230fd7

Browse files
committed
chore(release): update release workflow
- Improved release process - Added build artifact commit - Updated version to 0.10.3 - Automated artifact upload - Improved workflow naming
1 parent 3d06ff5 commit a230fd7

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
name: 'release'
1+
name: Release
22

33
on:
44
release:
55
types: [published]
66
workflow_dispatch:
77

88
permissions:
9-
contents: write
9+
contents: write # required for pushing + uploading release assets
1010

1111
jobs:
1212
release:
1313
runs-on: ubuntu-latest
14+
1415
steps:
1516
- name: Checkout code
1617
uses: actions/checkout@v5
@@ -34,5 +35,15 @@ jobs:
3435
- name: Build
3536
run: pnpm run build
3637

37-
- name: Add build artifacts
38-
run: git add dist -f
38+
- name: Commit build artifacts
39+
run: |
40+
git add dist -f
41+
git commit -m "chore: add build artifacts for release ${{ github.ref_name }}" || echo "No changes to commit"
42+
git push origin HEAD:${{ github.ref_name }}
43+
44+
- name: Upload release artifacts
45+
uses: softprops/action-gh-release@v2
46+
with:
47+
files: dist/**/*
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "universal-version-bump",
33
"displayName": "Universal Version Bump",
4-
"version": "0.10.2",
4+
"version": "0.10.3",
55
"description": "A GitHub Action to automatically bump versions across any app (Node, Python, PHP, Docker, etc.)",
66
"main": "dist/index.js",
77
"scripts": {

0 commit comments

Comments
 (0)