Skip to content

Commit b590802

Browse files
committed
feat(json-api-nestjs,json-api-nestjs-microorm,json-api-nestjs-sdk,json-api-nestjs-shared,json-api-nestjs-typeorm): up nestjs
1 parent 2e4700e commit b590802

File tree

5 files changed

+466
-253
lines changed

5 files changed

+466
-253
lines changed

.github/workflows/new-release.yml

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -82,64 +82,64 @@ on:
8282

8383

8484
jobs:
85-
# compute-projects:
86-
# uses: ./.github/workflows/compute-projects.yml
87-
# with:
88-
# tagChoice: ${{ github.event.inputs.tagChoice }}
89-
# project1: ${{ github.event.inputs.project1 }}
90-
# project2: ${{ github.event.inputs.project2 }}
91-
# project3: ${{ github.event.inputs.project3 }}
92-
# project4: ${{ github.event.inputs.project4 }}
93-
#
94-
# test:
95-
# needs: [compute-projects]
96-
# uses: ./.github/workflows/test.yml
97-
# with:
98-
# mainBranch: "last-tag"
99-
# secrets:
100-
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
101-
#
102-
# e2e-test:
103-
# needs: [test]
104-
# uses: ./.github/workflows/e2e-test.yml
105-
# with:
106-
# mainBranch: "last-tag"
107-
# secrets:
108-
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
109-
#
110-
# build:
111-
# needs: [test, e2e-test]
112-
# uses: ./.github/workflows/build.yml
113-
# with:
114-
# mainBranch: "last-tag"
115-
# secrets:
116-
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
117-
#
118-
# upload-badge:
119-
# needs: [ test, e2e-test ]
120-
# uses: ./.github/workflows/upload-badge.yml
121-
# with:
122-
# mainBranch: "last-tag"
123-
# secrets:
124-
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
125-
# GIST_SECRET: ${{ secrets.GIST_SECRET }}
126-
# GIST_ID: ${{ secrets.GIST_ID }}
85+
compute-projects:
86+
uses: ./.github/workflows/compute-projects.yml
87+
with:
88+
tagChoice: ${{ github.event.inputs.tagChoice }}
89+
project1: ${{ github.event.inputs.project1 }}
90+
project2: ${{ github.event.inputs.project2 }}
91+
project3: ${{ github.event.inputs.project3 }}
92+
project4: ${{ github.event.inputs.project4 }}
12793

128-
# bump-version:
129-
# needs: [build]
130-
# uses: ./.github/workflows/bump-version.yml
131-
# with:
132-
# projects: ${{ needs.compute-projects.outputs.finalProjects }}
133-
# beta-release: ${{ fromJSON(github.event.inputs.beta-release) }}
134-
# dry-run: ${{ fromJSON(github.event.inputs.dry-run) }}
135-
# secrets:
136-
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
137-
# GITHUB_TOKEN_SECRET: ${{ secrets.GITHUB_TOKEN }}
138-
# PAT: ${{secrets.PAT}}
94+
test:
95+
needs: [compute-projects]
96+
uses: ./.github/workflows/test.yml
97+
with:
98+
mainBranch: "last-tag"
99+
secrets:
100+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
101+
102+
e2e-test:
103+
needs: [test]
104+
uses: ./.github/workflows/e2e-test.yml
105+
with:
106+
mainBranch: "last-tag"
107+
secrets:
108+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
109+
110+
build:
111+
needs: [test, e2e-test]
112+
uses: ./.github/workflows/build.yml
113+
with:
114+
mainBranch: "last-tag"
115+
secrets:
116+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
117+
118+
upload-badge:
119+
needs: [ test, e2e-test ]
120+
uses: ./.github/workflows/upload-badge.yml
121+
with:
122+
mainBranch: "last-tag"
123+
secrets:
124+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
125+
GIST_SECRET: ${{ secrets.GIST_SECRET }}
126+
GIST_ID: ${{ secrets.GIST_ID }}
127+
128+
bump-version:
129+
needs: [build]
130+
uses: ./.github/workflows/bump-version.yml
131+
with:
132+
projects: ${{ needs.compute-projects.outputs.finalProjects }}
133+
beta-release: ${{ fromJSON(github.event.inputs.beta-release) }}
134+
dry-run: ${{ fromJSON(github.event.inputs.dry-run) }}
135+
secrets:
136+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
137+
GITHUB_TOKEN_SECRET: ${{ secrets.GITHUB_TOKEN }}
138+
PAT: ${{secrets.PAT}}
139139

140140
publish:
141141
if: ${{ fromJSON(github.event.inputs.dry-run) == false }}
142-
# needs: [bump-version]
142+
needs: [bump-version]
143143
uses: ./.github/workflows/publish.yml
144144
secrets:
145145
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

libs/json-api/json-api-nestjs/project.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"projectType": "library",
66
"tags": ["type:lib", "lib:json-api-nestjs", "lib:json-api-nestjs", "type:publish"],
77
"targets": {
8-
"build": {
8+
"build-common": {
99
"executor": "@nx/js:tsc",
1010
"outputs": [
1111
"{options.outputPath}"
@@ -23,6 +23,27 @@
2323
"updateBuildableProjectDepsInPackageJson": true
2424
}
2525
},
26+
"build": {
27+
"executor": "nx:run-commands",
28+
"dependsOn": [
29+
"build-common"
30+
],
31+
"options": {
32+
"outputPath": "dist/{projectRoot}",
33+
"commands": [
34+
{
35+
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs",
36+
"forwardAllArgs": false
37+
},
38+
{
39+
"command": "ln -s $(pwd)/dist/{projectRoot} node_modules/@klerick/json-api-nestjs",
40+
"forwardAllArgs": false
41+
}
42+
],
43+
"cwd": "./",
44+
"parallel": false
45+
}
46+
},
2647
"nx-release-publish": {
2748
"options": {
2849
"packageRoot": "dist/{projectRoot}"

0 commit comments

Comments
 (0)