-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): v0.1.2-alpha.7 (#17)
- Loading branch information
1 parent
b38b005
commit d762873
Showing
10 changed files
with
83 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
{ | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
"version": "0.1.2-alpha.0", | ||
"packages": ["packages/*"], | ||
"npmClient": "yarn" | ||
} | ||
"version": "0.1.2-alpha.7", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"npmClient": "yarn", | ||
"command": { | ||
"version": { | ||
"message": "chore(release): %s", | ||
"push": false, | ||
"gitTagVersion": false | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"repository": "github:CartoDB/carto-app-templates", | ||
"author": "Don McCurdy <[email protected]>", | ||
"license": "MIT", | ||
"version": "0.1.2-alpha.0", | ||
"version": "0.1.2-alpha.7", | ||
"type": "module", | ||
"bin": "./scripts/create.js", | ||
"scripts": { | ||
|
@@ -25,7 +25,7 @@ | |
"@angular/router": "^18.2.5", | ||
"@auth0/auth0-angular": "^2.2.3", | ||
"@carto/api-client": "^0.2.1", | ||
"@carto/create-common": "^0.1.2-alpha.0", | ||
"@carto/create-common": "^0.1.2-alpha.7", | ||
"@deck.gl/aggregation-layers": "^9.0.24", | ||
"@deck.gl/carto": "^9.0.24", | ||
"@deck.gl/core": "^9.0.24", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@carto/create-common", | ||
"packageManager": "[email protected]", | ||
"author": "Don McCurdy <[email protected]>", | ||
"version": "0.1.2-alpha.0", | ||
"version": "0.1.2-alpha.7", | ||
"license": "MIT", | ||
"type": "module", | ||
"sideEffects": false, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"repository": "github:CartoDB/carto-app-templates", | ||
"author": "Don McCurdy <[email protected]>", | ||
"license": "MIT", | ||
"version": "0.1.2-alpha.0", | ||
"version": "0.1.2-alpha.7", | ||
"type": "module", | ||
"bin": "./scripts/create.js", | ||
"scripts": { | ||
|
@@ -17,7 +17,7 @@ | |
"dependencies": { | ||
"@auth0/auth0-react": "^2.2.4", | ||
"@carto/api-client": "^0.2.1", | ||
"@carto/create-common": "^0.1.2-alpha.0", | ||
"@carto/create-common": "^0.1.2-alpha.7", | ||
"@deck.gl/aggregation-layers": "^9.0.24", | ||
"@deck.gl/carto": "^9.0.24", | ||
"@deck.gl/core": "^9.0.24", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"repository": "github:CartoDB/carto-app-templates", | ||
"author": "Don McCurdy <[email protected]>", | ||
"license": "MIT", | ||
"version": "0.1.2-alpha.0", | ||
"version": "0.1.2-alpha.7", | ||
"type": "module", | ||
"bin": "./scripts/create.js", | ||
"scripts": { | ||
|
@@ -16,7 +16,7 @@ | |
"dependencies": { | ||
"@auth0/auth0-vue": "^2.3.3", | ||
"@carto/api-client": "^0.2.1", | ||
"@carto/create-common": "^0.1.2-alpha.0", | ||
"@carto/create-common": "^0.1.2-alpha.7", | ||
"@deck.gl/aggregation-layers": "^9.0.24", | ||
"@deck.gl/carto": "^9.0.24", | ||
"@deck.gl/core": "^9.0.24", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { execSync } from 'node:child_process'; | ||
import { readFile } from 'node:fs/promises'; | ||
import { resolve } from 'node:path'; | ||
import { valid } from 'semver'; | ||
|
||
/** | ||
* Utility for committing and tagging a release commit in | ||
* git, called as part of the `yarn postversion` script. | ||
*/ | ||
|
||
// Read and validate pkg.version. | ||
const pkgJSON = await readFile( | ||
resolve('./packages/create-react/package.json'), | ||
'utf-8', | ||
); | ||
const version = 'v' + JSON.parse(pkgJSON).version; | ||
if (!valid(version)) { | ||
throw new Error(`Invalid version, "${version}"`); | ||
} | ||
|
||
// Check out a branch if cutting a version from 'main'. | ||
const branch = execSync('git rev-parse --abbrev-ref HEAD').toString().trim(); | ||
if (branch === 'main') { | ||
execSync(`git checkout -b 'release/${version}'`); | ||
} | ||
|
||
// Commit and tag. | ||
execSync('git add -u'); | ||
execSync(`git commit -m 'chore(release): ${version}'`); | ||
execSync(`git tag -a ${version} -m ${version}`); |
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