Skip to content

Commit

Permalink
chore(release): 0.2.1-alpha.3
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Oct 2, 2024
1 parent 6a1b32f commit 93c894f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repository": "github:CartoDB/carto-api-client",
"author": "Don McCurdy <[email protected]>",
"packageManager": "[email protected]",
"version": "0.2.1-0",
"version": "0.2.1-alpha.3",
"license": "MIT",
"publishConfig": {
"access": "public",
Expand Down
8 changes: 4 additions & 4 deletions scripts/postversion-commit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {execSync} from 'node:child_process';
import {version} from '../package.json';
import pkg from '../package.json' assert {type: 'json'};

/**
* Utility for committing and tagging a release commit in
Expand All @@ -11,9 +11,9 @@ const currentBranch = execSync('git rev-parse --abbrev-ref HEAD')
.trim();

if (currentBranch === 'main') {
execSync(`git checkout -b 'release/${version}'`);
execSync(`git checkout -b 'release/${pkg.version}'`);
}

execSync('git add -u');
execSync(`git commit -m 'chore(release): ${version}'`);
execSync(`git tag -a ${version} -m ${version}`);
execSync(`git commit -m 'chore(release): ${pkg.version}'`);
execSync(`git tag -a ${pkg.version} -m ${pkg.version}`);

0 comments on commit 93c894f

Please sign in to comment.