-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c02bf2
commit 35e2cd8
Showing
5 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,24 +19,35 @@ jobs: | |
node-version: 20 | ||
cache: 'pnpm' | ||
- run: pnpm install | ||
- run: pnpm test | ||
- run: pnpm build | ||
- name: Build z | ||
run: cd packages/z && pnpm build | ||
- name: Test z | ||
run: cd packages/z && pnpm test | ||
- name: Test nestjs-zod | ||
run: cd packages/nestjs-zod && pnpm test | ||
- name: Build nestjs-zod | ||
run: cd packages/nestjs-zod && pnpm build | ||
- name: Build example app | ||
run: cd packages/example && pnpm run build | ||
- name: Test example app | ||
run: cd packages/example && pnpm run test:e2e | ||
|
||
- name: Extract version | ||
id: version | ||
uses: olegtarasov/[email protected] | ||
uses: olegtarasov/[email protected].3 | ||
with: | ||
tagRegex: 'v(.*)' | ||
|
||
- name: Set version from release | ||
uses: reedyuk/npm-version@1.0.1 | ||
uses: reedyuk/npm-version@1.1.1 | ||
with: | ||
version: ${{ steps.version.outputs.tag }} | ||
package: 'packages/nestjs-zod' | ||
|
||
- name: Create NPM config | ||
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | ||
run: cd packages/nestjs-zod && npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Publish to NPM | ||
run: npm publish | ||
run: cd packages/nestjs-zod && npm publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"name": "nestjs-zod-example", | ||
"version": "0.0.1", | ||
"description": "", | ||
"author": "", | ||
"description": "Example app showing how to use nestjs-zod", | ||
"author": "Ben Lorantfy <[email protected]>", | ||
"private": true, | ||
"license": "UNLICENSED", | ||
"scripts": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,11 @@ | |
], | ||
"sideEffects": false, | ||
"license": "MIT", | ||
"repository": "[email protected]:BenLorantfy/nestjs-zod.git", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:BenLorantfy/nestjs-zod.git", | ||
"directory": "packages/nestjs-zod" | ||
}, | ||
"author": "Evgeny Zakharov <[email protected]>", | ||
"publishConfig": { | ||
"access": "public" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,11 @@ | |
], | ||
"sideEffects": false, | ||
"license": "MIT", | ||
"repository": "[email protected]:BenLorantfy/nestjs-zod.git", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:BenLorantfy/nestjs-zod.git", | ||
"directory": "packages/z" | ||
}, | ||
"author": "Evgeny Zakharov <[email protected]>", | ||
"publishConfig": { | ||
"access": "public" | ||
|