Skip to content

Commit

Permalink
Fix npm run release
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Dec 22, 2023
1 parent 5f2e9a5 commit ca9c3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm-scripts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { execSync } from 'child_process';

const PKG = JSON.parse(fs.readFileSync('./package.json').toString());
const IS_WINDOWS = os.platform() === 'win32';
const MAYOR_VERSION = PKG.version.split('.')[0];
const RELEASE_BRANCH = 'master';

const task = process.argv.slice(2).join(' ');

Expand Down Expand Up @@ -84,7 +84,7 @@ async function run()
checkRelease();
executeCmd(`git commit -am '${PKG.version}'`);
executeCmd(`git tag -a ${PKG.version} -m '${PKG.version}'`);
executeCmd(`git push origin v${MAYOR_VERSION}`);
executeCmd(`git push origin ${RELEASE_BRANCH}`);
executeCmd(`git push origin '${PKG.version}'`);
executeCmd('npm publish');

Expand Down

0 comments on commit ca9c3e7

Please sign in to comment.