Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .eslintrc.json

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

20 changes: 20 additions & 0 deletions .gitattributes

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

21 changes: 15 additions & 6 deletions .github/workflows/build.yml

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

26 changes: 26 additions & 0 deletions .github/workflows/projenupgrade.yml

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

32 changes: 20 additions & 12 deletions .github/workflows/release.yml

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

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
.eslintcache
.nyc_output
.yarn-integrity
/.changelog.tmp.md
/.version.tmp.json
/coverage
/dist
/lib
Expand All @@ -28,9 +30,11 @@ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
yarn-debug.log*
yarn-error.log*
!/.eslintrc.json
!/.gitattributes
!/.github/dependabot.yml
!/.github/pull_request_template.md
!/.github/workflows/build.yml
!/.github/workflows/projenupgrade.yml
!/.github/workflows/release.yml
!/.mergify.yml
!/.npmignore
Expand All @@ -45,4 +49,3 @@ yarn-error.log*
!/tsconfig.eslint.json
!/tsconfig.jest.json
!/tsconfig.json
!version.json
2 changes: 1 addition & 1 deletion .npmignore

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

2 changes: 1 addition & 1 deletion .projen/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
{
"name": "projen",
"version": "^0.17.16",
"version": "^0.17.88",
"type": "build"
},
{
Expand Down
63 changes: 38 additions & 25 deletions .projen/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,33 @@
],
"condition": "git diff --exit-code > /dev/null"
},
"bump": {
"name": "bump",
"category": "20.release",
"description": "Bumps version based on latest git tag and generates a changelog entry",
"steps": [
{
"exec": "git -c \"versionsort.suffix=-\" tag --sort=\"-version:refname\" --list \"v*\" | head -n1 > .version.tmp.json"
},
{
"exec": "if [ \"$(cat .version.tmp.json)\" == \"\" ]; then echo \"v0.1.0\" > .version.tmp.json; fi"
},
{
"exec": "standard-version"
}
],
"condition": "! git log --oneline -1 | grep -q \"chore(release):\""
},
"unbump": {
"name": "unbump",
"category": "20.release",
"description": "Restores version to 0.0.0",
"steps": [
{
"exec": "standard-version -r 0.0.0"
}
]
},
"compile": {
"name": "compile",
"category": "00.build",
Expand Down Expand Up @@ -77,6 +104,9 @@
"category": "00.build",
"description": "Full release build (test+compile)",
"steps": [
{
"exec": "npx projen"
},
{
"spawn": "test"
},
Expand All @@ -97,31 +127,6 @@
}
]
},
"bump": {
"name": "bump",
"category": "20.release",
"description": "Commits a bump to the package version based on conventional commits",
"steps": [
{
"exec": "standard-version"
}
],
"condition": "! git log --oneline -1 | grep -q \"chore(release):\""
},
"release": {
"name": "release",
"category": "20.release",
"description": "Bumps version & push to master",
"steps": [
{
"spawn": "bump"
},
{
"exec": "git push --follow-tags origin master"
}
],
"condition": "! git log --oneline -1 | grep -q \"chore(release):\""
},
"test:watch": {
"name": "test:watch",
"category": "10.test",
Expand Down Expand Up @@ -155,6 +160,14 @@
}
]
},
"default": {
"name": "default",
"steps": [
{
"exec": "node .projenrc.js"
}
]
},
"watch": {
"name": "watch",
"category": "00.build",
Expand Down
1 change: 1 addition & 0 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const project = new TypeScriptProject({
authorOrganization: true,
authorUrl: 'https://aws.amazon.com',
homepage: 'https://github.com/aws/jsii-release',
projenUpgradeSecret: 'PROJEN_GITHUB_TOKEN',
});

// create tarball and move to dist/js so release workflow can pick it up from there.
Expand Down
21 changes: 11 additions & 10 deletions .versionrc.json

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

Loading