Skip to content

Commit

Permalink
Build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
resolve-bot committed Feb 18, 2021
1 parent 5e8f763 commit 5513ec2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions publish/dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5443,9 +5443,8 @@ const determineVersion = () => {
const version = core.getInput('version', { required: true });
if (version.toLowerCase() === 'auto') {
const pkg = JSON.parse(fs_1.readFileSync(path.resolve('./package.json')).toString('utf-8'));
const date = new Date();
const build = (_a = core.getInput('build')) !== null && _a !== void 0 ? _a : new Date().toISOString().replace(/[:.]/gi, '-');
return `${pkg.version}.${build}`;
return `${pkg.version}-${build}`;
}
if (!semver_1.default.parse(version)) {
throw Error(`invalid version: ${version}`);
Expand Down

0 comments on commit 5513ec2

Please sign in to comment.