Skip to content

Commit

Permalink
chore: enable publishing for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealAmazonKendra committed Aug 8, 2024
1 parent 9d8fd4f commit 87f4880
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 206 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 0 additions & 78 deletions .github/workflows/release-v2-main.yml

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 0 additions & 89 deletions .github/workflows/upgrade-main.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 8 additions & 17 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 26 additions & 10 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@ import { typescript } from 'projen';
const project = new typescript.TypeScriptProject({
name: 'cdk-assets',
projenrcTs: true,
publishDryRun: true,
defaultReleaseBranch: 'main',
majorVersion: 3,
prerelease: 'rc',
releaseBranches: {
'v2-main': {
majorVersion: 2,
},
},
defaultReleaseBranch: 'v2-main',
majorVersion: 2,
autoApproveUpgrades: true,
autoApproveOptions: {
allowedUsernames: ['aws-cdk-automation'],
Expand Down Expand Up @@ -83,7 +76,13 @@ const project = new typescript.TypeScriptProject({
include: ['bin/**/*.ts'],
},
srcdir: 'lib',
gitignore: ['**/*.d.ts', '**/*.js', '**/.DS_Store'],
gitignore: ['**/*.d.ts', '**/*.js', '**/.DS_Store', 'npm-shrinkwrap.json'],
releaseWorkflowSetupSteps: [
{
name: 'Shrinkwrap',
run: 'npx projen shrinkwrap',
},
],
});

project.addPackageIgnore('*.ts');
Expand All @@ -96,4 +95,21 @@ project.eslint?.addRules({
],
});

project.addTask('shrinkwrap', {
steps: [
{
spawn: 'bump',
},
{
exec: 'npm shrinkwrap',
},
{
spawn: 'unbump',
},
{
exec: 'git checkout HEAD -- yarn.lock',
},
],
});

project.synth();
4 changes: 2 additions & 2 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87f4880

Please sign in to comment.