File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
packages/cli-forge/src/middleware Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 99 required : true
1010 default : ' false'
1111 options :
12- - true
13- - false
12+ - ' true'
13+ - ' false'
1414 workflow_call :
1515 inputs :
1616 docs_only :
5454 run : |
5555 node ./node_modules/.bin/nx release ${{ github.run_attempt == '1' && '--yes' || '--yes --verbose' }}
5656 env :
57- NODE_AUTH_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
58- NPM_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
5957 NPM_CONFIG_PROVENANCE : true
6058 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6159 if : github.ref == 'refs/heads/main' && github.event.inputs.docs_only == 'false'
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ import { ParsedArgs } from '@cli-forge/parser';
22import { MiddlewareFunction } from '../lib/public-api' ;
33import type { z , ZodObject , ZodPipe } from 'zod' ;
44
5+ /*
6+ * Middleware that uses a Zod schema to validate and transform command arguments.
7+ * @param schema The Zod schema to use for validation and transformation.
8+ * @returns A middleware function that applies the Zod schema to the command arguments.
9+ */
510export function zodMiddleware <
611 TArgs extends ParsedArgs ,
712 TSchema extends ZodObject | ZodPipe < ZodObject >
You can’t perform that action at this time.
0 commit comments