Skip to content

Commit 28fb9ff

Browse files
committed
chore: bump version for dev builds
1 parent 661aa85 commit 28fb9ff

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build-dev-artifacts.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ jobs:
2828
run: |
2929
composer install --no-dev --prefer-dist --no-progress
3030
- name: Create zip
31-
run: npm run dist
31+
run: |
32+
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
33+
COMMIT_HASH=$(git rev-parse --short HEAD)
34+
DEV_VERSION="${CURRENT_VERSION}-dev.${COMMIT_HASH}"
35+
grunt version::${DEV_VERSION}
36+
npm run dist
3237
- name: Retrieve branch name
3338
id: retrieve-branch-name
3439
run: echo "::set-output name=branch_name::$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')"

0 commit comments

Comments
 (0)