Skip to content

Commit

Permalink
Substring update
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Jul 21, 2024
1 parent 380bc80 commit 36e0ef0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/beta-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const core = require('@actions/core');
const packageJson = require('../package.json');
const version = packageJson.version.split('.');

packageJson.version = `${version[0]}.${version[1]}.${process.argv[process.argv.length - 1]}`;
packageJson.version = `${version[0]}.${version[1]}.${process.argv[
process.argv.length - 1
].substring(0, 9)}`;
packageJson.preview = true;
packageJson.name = 'vscode-front-matter-beta';
packageJson.displayName = `${packageJson.displayName} (BETA)`;
Expand Down

0 comments on commit 36e0ef0

Please sign in to comment.