Skip to content

Commit e7b2027

Browse files
bweigelbweigelgithub-actions
authored
feat: add versionrc options (#145)
* feat: add versionrc options this is `feat`, so standard-version will do a minor version bump * chore: self mutation Signed-off-by: github-actions <[email protected]> --------- Signed-off-by: github-actions <[email protected]> Co-authored-by: bweigel <[email protected]> Co-authored-by: github-actions <[email protected]>
1 parent b3e850b commit e7b2027

File tree

4 files changed

+805
-42
lines changed

4 files changed

+805
-42
lines changed

.projen/tasks.json

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

.projenrc.ts

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ const project = new awscdk.AwsCdkTypeScriptApp({
5454
uses: 'aws-actions/setup-sam@v2',
5555
},
5656
],
57+
versionrcOptions: {
58+
types: [
59+
{ type: 'feat', hidden: true },
60+
{ type: 'fix', hidden: true },
61+
{ type: 'chore', hidden: true },
62+
{ type: 'docs', hidden: true },
63+
{ type: 'style', hidden: true },
64+
{ type: 'refactor', hidden: true },
65+
{ type: 'perf', hidden: true },
66+
{ type: 'test', hidden: true },
67+
],
68+
},
5769

5870
buildWorkflow: true,
5971
package: false,
@@ -169,21 +181,21 @@ project.release?.addJobs({
169181
{
170182
uses: 'actions/setup-node@v3',
171183
with: {
172-
'node-version': '14.x'
173-
}
184+
'node-version': '14.x',
185+
},
174186
},
175187
{
176188
name: 'Download build artifacts',
177189
uses: 'actions/download-artifact@v3',
178190
with: {
179191
name: 'build-artifact',
180-
path: 'dist'
181-
}
192+
path: 'dist',
193+
},
182194
},
183195
{
184196
name: 'Restore build artifact permissions',
185197
run: 'cd dist && setfacl --restore=permissions-backup.acl',
186-
continueOnError: true
198+
continueOnError: true,
187199
},
188200
{
189201
name: 'Upload Release Artifacts',
@@ -192,11 +204,11 @@ project.release?.addJobs({
192204
GITHUB_REPOSITORY: '${{ github.repository }}',
193205
GITHUB_REF: '${{ github.ref }}',
194206
},
195-
run: 'errout=$(mktemp); gh release upload $(cat dist/releasetag.txt) --clobber -R $GITHUB_REPOSITORY dist/tesseract-al2-x86.zip 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi'
196-
}
197-
]
198-
}
199-
})
207+
run: 'errout=$(mktemp); gh release upload $(cat dist/releasetag.txt) --clobber -R $GITHUB_REPOSITORY dist/tesseract-al2-x86.zip 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi',
208+
},
209+
],
210+
},
211+
});
200212
project.eslint?.addRules({
201213
'prettier/prettier': ['error', { singleQuote: true, printWidth: 140, trailingComma: TrailingComma.ALL }],
202214
});

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,19 @@ Tesseract OCR Lambda Layer
1616
1717
<!-- TOC -->
1818

19-
- [Tesseract OCR Lambda Layer](#tesseract-ocr-lambda-layer)
2019
- [Quickstart](#quickstart)
2120
- [Ready-to-use binaries](#ready-to-use-binaries)
22-
- [Use with Serverless Framework](#use-with-serverless-framework)
23-
- [Use with AWS CDK](#use-with-aws-cdk)
21+
- [Use with Serverless Framework](#use-with-serverless-framework)
22+
- [Use with AWS CDK](#use-with-aws-cdk)
2423
- [Build tesseract layer from source using Docker](#build-tesseract-layer-from-source-using-docker)
25-
- [available `Dockerfile`s](#available-dockerfiles)
26-
- [Building a different tesseract version and/or language](#building-a-different-tesseract-version-andor-language)
27-
- [Deployment size optimization](#deployment-size-optimization)
28-
- [Building the layer binaries directly using CDK](#building-the-layer-binaries-directly-using-cdk)
29-
- [Layer contents](#layer-contents)
24+
- [available `Dockerfile`s](#available-dockerfiles)
25+
- [Building a different tesseract version and/or language](#building-a-different-tesseract-version-andor-language)
26+
- [Deployment size optimization](#deployment-size-optimization)
27+
- [Building the layer binaries directly using CDK](#building-the-layer-binaries-directly-using-cdk)
28+
- [Layer contents](#layer-contents)
3029
- [Known Issues](#known-issues)
31-
- [Avoiding Pillow library issues](#avoiding-pillow-library-issues)
32-
- [Unable to import module 'handler': cannot import name '_imaging'](#unable-to-import-module-handler-cannot-import-name-_imaging)
30+
- [Avoiding Pillow library issues](#avoiding-pillow-library-issues)
31+
- [Unable to import module 'handler': cannot import name '_imaging'](#unable-to-import-module-handler-cannot-import-name-_imaging)
3332
- [Contributors :heart:](#contributors-heart)
3433

3534
<!-- /TOC -->

0 commit comments

Comments
 (0)