Skip to content

Commit 687f474

Browse files
authored
Set dev version for dev container (#790)
1 parent 1271356 commit 687f474

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/release_dev.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,22 @@ jobs:
1313
packages: write
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Setup Go
17-
uses: actions/setup-go@v5
1816
with:
19-
go-version: '1.22'
17+
fetch-depth: 0
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '22'
23+
24+
- name: Bump versions
25+
run: |
26+
LAST_TAG=$(git describe --tags --abbrev=0)
27+
BASE_VERSION=${LAST_TAG#v}
28+
FULL_SHA=$(git rev-parse HEAD)
29+
VERSION="${BASE_VERSION}-dev+${FULL_SHA}"
30+
cd web && npm version $VERSION --no-git-tag-version && cd ..
31+
cd docs && npm version $VERSION --no-git-tag-version && cd ..
2032
2133
- name: Login to GHCR
2234
uses: docker/login-action@v3

0 commit comments

Comments
 (0)