Skip to content

Commit

Permalink
chore(toolkit): publish alphas with version hash
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Jan 31, 2025
1 parent c346e82 commit bc7f05f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/@aws-cdk/toolkit/build-tools/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

version=${1:-latest}
reset=0.0.0
commit=$(git rev-parse --short HEAD)

# Toolkit package root
cd "$(dirname $(dirname "$0"))"

npm pkg set version=0.0.0-alpha.$commit
npm pkg set dependencies.@aws-cdk/cx-api=$version
npm pkg set dependencies.@aws-cdk/cloudformation-diff=$version
npm pkg set dependencies.@aws-cdk/region-info=$version
yarn package --private
npm pkg set version=$reset
npm pkg set dependencies.@aws-cdk/cx-api=$reset
npm pkg set dependencies.@aws-cdk/cloudformation-diff=$reset
npm pkg set dependencies.@aws-cdk/region-info=$reset
3 changes: 2 additions & 1 deletion packages/@aws-cdk/toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
".": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"./package.json": "./package.json"
},
"scripts": {
"awslint": "cdk-awslint",
Expand Down

0 comments on commit bc7f05f

Please sign in to comment.