Skip to content

Commit 99ab754

Browse files
authored
chore(ci): use current released version in package.json and bump to next patch in stage (#827)
1 parent df77bee commit 99ab754

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/stage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
id: ea_version
4646
run: |
4747
# Get the current version from package.json
48-
base_version=$(node -p "require('./package.json').version")
48+
next_base_version=$(node version patch --no-git-tag-version)
4949
5050
# Get short commit SHA
5151
short_sha=$(git rev-parse --short HEAD)
52-
echo "version=$base_version-ea.$short_sha" >> "$GITHUB_OUTPUT"
52+
echo "version=$next_base_version-ea.$short_sha" >> "$GITHUB_OUTPUT"
5353
5454
- name: Update package with EA version
5555
run: |

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "fabric8-analytics",
33
"displayName": "Red Hat Dependency Analytics",
44
"description": "Provides insights on security vulnerabilities in your application dependencies.",
5-
"version": "0.10.0",
5+
"version": "0.9.6",
66
"author": "Red Hat",
77
"publisher": "redhat",
88
"preview": true,

0 commit comments

Comments
 (0)