Skip to content

Commit 8145bc1

Browse files
authored
chore(parser): add parser to release steps (#2382)
* chore: add parser to release steps * fix run command sequence * adjust comment to avoid future changed * change to public access, fix keywords * add beta warning
1 parent 9505544 commit 8145bc1

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

Diff for: .github/actions/cached-node-modules/action.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ runs:
3434
- name: Build packages
3535
# Regardless of whether the cache was hit or not, we need to build the packages, unless the caller says otherwise
3636
if: inputs.build == 'true'
37-
# We build the shared package first, then the others in parallel to speed up the process
37+
# We build the commons and jmspath packages first, then the others in parallel to speed up the process
3838
# even though we could just run `npm run build` in the root folder and build them in
3939
# sequence, but still in the correct order.
4040
run: |
41-
npm run build -w packages/commons
41+
npm run build -w packages/commons
4242
npm run build -w packages/jmespath
4343
npm run build -w packages/logger & \
4444
npm run build -w packages/tracer & \
4545
npm run build -w packages/metrics & \
4646
npm run build -w packages/parameters & \
4747
npm run build -w packages/idempotency & \
4848
npm run build -w packages/batch & \
49-
npm run build -w packages/testing
49+
npm run build -w packages/testing & \
50+
npm run build -w packages/parser
5051
shell: bash

Diff for: .github/scripts/release_patch_package_json.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (process.argv.length < 3) {
1818
const basePath = resolve(process.argv[2]);
1919
const packageJsonPath = join(basePath, 'package.json');
2020
const alphaPackages = [];
21-
const betaPackages = [];
21+
const betaPackages = ['@aws-lambda-powertools/parser'];
2222

2323
(() => {
2424
try {

Diff for: .github/workflows/reusable-run-linting-check-and-unit-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
with:
2929
nodeVersion: ${{ matrix.version }}
3030
- name: Run linting
31-
run: npm run lint -w packages/commons -w packages/logger -w packages/tracer -w packages/metrics -w packages/parameters -w packages/idempotency -w packages/batch -w packages/jmespath
31+
run: npm run lint -w packages/commons -w packages/logger -w packages/tracer -w packages/metrics -w packages/parameters -w packages/idempotency -w packages/batch -w packages/jmespath -w packages/parser
3232
- name: Run unit tests
33-
run: npm t -w packages/commons -w packages/logger -w packages/tracer -w packages/metrics -w packages/parameters -w packages/idempotency -w packages/batch -w packages/jmespath
33+
run: npm t -w packages/commons -w packages/logger -w packages/tracer -w packages/metrics -w packages/parameters -w packages/idempotency -w packages/batch -w packages/jmespath -w packages/parser
3434
check-examples:
3535
runs-on: ubuntu-latest
3636
env:

Diff for: lerna.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"packages/batch",
1010
"packages/testing",
1111
"packages/jmespath",
12+
"packages/parser",
1213
"examples/app",
1314
"layers",
1415
"docs/snippets"

Diff for: packages/parser/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Powertools for AWS Lambda (TypeScript) - Parser Utility <!-- omit in toc -->
22

3+
4+
| ⚠️ **WARNING: Do not use this utility in production just yet!** ⚠️ |
5+
| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
6+
| This AWS Lambda Powertools for TypeScript utility is currently released as beta developer preview and is intended strictly for feedback and testing purposes only. <br/>This version is not stable, and significant breaking changes might incur before going [before the GA release](https://github.com/aws-powertools/powertools-lambda-typescript/milestone/16). | _ |
7+
8+
9+
310
Powertools for AWS Lambda (TypeScript) is a developer toolkit to implement Serverless [best practices and increase developer velocity](https://docs.powertools.aws.dev/lambda/typescript/latest/#features).
411

512
You can use the package in both TypeScript and JavaScript code bases.

Diff for: packages/parser/package.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://aws.amazon.com"
88
},
99
"publishConfig": {
10-
"access": "restricted"
10+
"access": "public"
1111
},
1212
"scripts": {
1313
"test": "npm run test:unit",
@@ -91,9 +91,16 @@
9191
"aws",
9292
"lambda",
9393
"powertools",
94-
"batch",
95-
"batch-processing",
94+
"parser",
95+
"zod",
96+
"parse",
97+
"events",
98+
"payloads",
99+
"inputs",
100+
"validate",
101+
"validation",
96102
"serverless",
103+
"typescript",
97104
"nodejs"
98105
],
99106
"peerDependencies": {

0 commit comments

Comments
 (0)