Skip to content

Commit 0ac3500

Browse files
committed
chore(ci): v2 release line
1 parent db08c22 commit 0ac3500

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/scripts/release_patch_package_json.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ const betaPackages = [];
6262
readFileSync(resolve('..', '..', 'v2.json'), 'utf8')
6363
).iteration;
6464
version = `${version}-alpha.${iteration}`;
65+
dependencies &&
66+
Object.entries(dependencies).forEach(([dependencyName, version]) => {
67+
if (alphaPackages.includes(dependencyName)) {
68+
dependencies[dependencyName] = `${version}-alpha.${iteration}`;
69+
}
70+
});
6571
} else if (betaPackages.includes(name)) {
6672
version = `${version}-beta`;
6773
}
@@ -84,9 +90,6 @@ const betaPackages = [];
8490
types,
8591
files,
8692
type,
87-
scripts: {
88-
postinstall: `echo 'WARNING: This is a pre-release version of Powertools for AWS (TypeScript) provided for evaluation only. Do not use in production.'`,
89-
},
9093
};
9194

9295
// Not all utilities have these fields, so only add them if they exist to avoid

.github/workflows/make-v2-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
echo "// this file is auto generated, do not modify\nexport const PT_VERSION = '2.0.0-alpha.$(jq -r '.iteration' v2.json)';" > packages/commons/src/version.ts
4646
- name: Build
4747
run: |
48-
npm run build:prod -w packages/batch \
48+
npm run build -w packages/batch \
4949
-w packages/commons \
5050
-w packages/idempotency \
5151
-w packages/logger \

0 commit comments

Comments
 (0)