Skip to content

Commit 28d0180

Browse files
authored
feat: oidc + test publishing to gh (#9)
1 parent 000a6c8 commit 28d0180

File tree

15 files changed

+3452
-3406
lines changed

15 files changed

+3452
-3406
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release.yml

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/upgrade-main.yml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.npmignore

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/deps.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/tasks.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const project = new awscdk.AwsCdkConstructLibrary({
88
// https://github.com/projen/projen/pull/3459/files Not yet in the latest projen template started
99
jsiiVersion: '~5.3.0',
1010
typescriptVersion: '~5.3.0',
11-
name: 'recipes_data-landing-zone_data-landing-zone',
11+
name: '@DataChefHQ/data-landing-zone', //TODO: Change back when using NPM
12+
// name: 'data-landing-zone', //TODO: Change back when using NPM
1213
packageManager: javascript.NodePackageManager.NPM,
1314
projenrcTs: true,
1415
repositoryUrl: 'https://github.com/DataChefHQ/recipes_data-landing-zone_data-landing-zone.git',
@@ -32,7 +33,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
3233
},
3334
},
3435
},
35-
workflowNodeVersion: '18',
36+
workflowNodeVersion: '20',
3637
publishToPypi: {
3738
distName: 'recipes_dlz',
3839
module: 'recipes_dlz',
@@ -41,25 +42,30 @@ const project = new awscdk.AwsCdkConstructLibrary({
4142
// deps: [ ],
4243
/* Runtime dependencies of this module that are NOT jsii-enabled. */
4344
bundledDeps: ['[email protected]', '@aws-sdk/client-sts', '@aws-sdk/credential-providers', '@aws-sdk/client-cost-explorer', 'table'],
44-
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
45-
devDeps: ['husky'], /* Build dependencies for this module. */
46-
// packageName: undefined, /* The "name" in package.json. */
45+
// description: undefined,
46+
/* Build dependencies for this repo/module. */
47+
devDeps: ['husky'],
48+
/* The "name" in package.json. */
49+
// packageName: undefined,
4750
jestOptions: {
4851
jestConfig: {
4952
moduleFileExtensions: ['ts', 'tsx', 'js', 'mjs', 'cjs', 'jsx', 'json', 'node'], // https://jestjs.io/docs/configuration#modulefileextensions-arraystring
5053
},
5154
},
55+
npmRegistryUrl: 'https://npm.pkg.github.com',
5256
});
5357

54-
project.package.addEngine('node', '~18.*');
55-
project.package.addEngine('npm', '~9.*');
58+
project.package.addEngine('node', '~20.*');
59+
project.package.addEngine('npm', '~10.*');
5660

5761
// Need to clear before compiling and packaging. Have to remove these because they are not cleared for some reason,
5862
// only new files are added and it causes issues especially because when changing the folder structure the whole time.
5963
const clear = project.addTask('clear-lib-and-dist');
6064
clear.exec('rm -rf lib/ dist/');
6165

62-
project.package.setScript('prepare', 'husky');
66+
// Only run husky if not in CI, in the post install script
67+
project.package.setScript('prepare', 'if [ "$CI" = "true" ]; then echo "CI detected, not running husky"; else husky; fi');
68+
6369
project.gitignore.addPatterns('.dlz-reports');
6470
project.gitignore.addPatterns('.idea');
6571
project.gitignore.addPatterns('*.js');

0 commit comments

Comments
 (0)