File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 37
37
- name : Create zip
38
38
run : |
39
39
npm ci
40
- npm run build
40
+ npm run build
41
+ CURRENT_VERSION=$(node -p -e "require('./package.json').version")
42
+ COMMIT_HASH=$(git rev-parse --short HEAD)
43
+ DEV_VERSION="${CURRENT_VERSION}-dev.${COMMIT_HASH}"
44
+ npm run grunt version::${DEV_VERSION}
41
45
npm run dist
42
46
- name : Retrieve branch name
43
47
id : retrieve-branch-name
Original file line number Diff line number Diff line change 31
31
"lint:js" : " wp-scripts lint-js ./js" ,
32
32
"release" : " semantic-release --debug" ,
33
33
"dist" : " bash bin/dist.sh" ,
34
+ "grunt" : " grunt" ,
34
35
"test:e2e" : " wp-scripts test-playwright --config tests/e2e/playwright.config.js" ,
35
36
"test:e2e:debug" : " wp-scripts test-playwright --config tests/e2e/playwright.config.js --ui" ,
36
37
"wp-env" : " wp-env"
You can’t perform that action at this time.
0 commit comments