Skip to content

Commit 82e4ecd

Browse files
committed
working versioning
1 parent da99e29 commit 82e4ecd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ jobs:
5151
with:
5252
fetch-depth: 0
5353

54+
- name: Bump version
55+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
56+
run: |
57+
git config user.name "github-actions[bot]"
58+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
59+
npm version patch -m "chore: bump version to %s [skip ci]"
60+
git push origin main
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
5464
- name: Get version from package.json
5565
id: version
5666
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "street-sweep",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"private": true,
55
"scripts": {
66
"dev": "next dev -p 3888",

0 commit comments

Comments
 (0)