Closed ifrost closed 1 month ago
When building with Drone the Preview badge doesn't get the correct version number:
Everything looks fine when building with GitHub actions
Drone is set up to run webpack command directly, not via npm.
npm run build
dist/module.js
v0.1.2
...const xv=`v0.1.2 - ${"2024-09-23T09:10:00.222Z".split("T")[0]} (78b49a7)...
./node_modules/.bin/webpack -c ./webpack.config.ts --env production
vundefined
const xv=`vundefined - ${"2024-09-23T09:18:57.553Z".split("T")[0]} (e64844b)...
Expected: Regardless how webpack is run the version should be updated correctly.
Details
When building with Drone the Preview badge doesn't get the correct version number:
Everything looks fine when building with GitHub actions
Drone is set up to run webpack command directly, not via npm.
Steps to reproduce
npm run build
dist/module.js
v0.1.2
(or different depending on what's in package.json)...const xv=`v0.1.2 - ${"2024-09-23T09:10:00.222Z".split("T")[0]} (78b49a7)...
./node_modules/.bin/webpack -c ./webpack.config.ts --env production
(same command but directly with node)dist/module.js
v0.1.2
(or different depending on what's in package.json) -> shows no resultsvundefined
(or different depending on what's in package.json)const xv=`vundefined - ${"2024-09-23T09:18:57.553Z".split("T")[0]} (e64844b)...
Expected: Regardless how webpack is run the version should be updated correctly.