-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): update build id, version generation (#4098)
this commit changes the method used by the release scripts to generate the build id and version number for "development builds", where a "development build" is considered a build of stencil performed outside using the `npm run release.*` scripts. this includes running `npm run build` locally and in ci. build id generation has changed from a date format 'yyyyMMddHHmmss', to be epoch time in seconds. this allows us to easily convert the build time to a human readable time if needed, with the added benefits of easier de/serialization and a more compact representation. there exists no place in the stencil codebase where this value is compared today, and given this change only applies to dev builds, we can safely make this change without breaking stencil or downstream consmers. version generation has changed from '0.0.0-dev.BUILD_ID` to use the current version stored in stencil's `package.json` as a base (so that it is easily identifiable the stable version of stencil a build derives from, the new build id, and a seven character sha to pinpoint the base commit of the development build. this commit is motivated by an effort to get development builds working in a github actions ci environment. we wish to have this information generated by stencil, rather than the ci process, such that commands like `npx stencil info` returns the same version info as what's published to the npm registry
- Loading branch information
1 parent
fe62347
commit 085670e
Showing
2 changed files
with
70 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters