Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 54 additions & 54 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,64 +82,64 @@ on:


jobs:
# compute-projects:
# uses: ./.github/workflows/compute-projects.yml
# with:
# tagChoice: ${{ github.event.inputs.tagChoice }}
# project1: ${{ github.event.inputs.project1 }}
# project2: ${{ github.event.inputs.project2 }}
# project3: ${{ github.event.inputs.project3 }}
# project4: ${{ github.event.inputs.project4 }}
#
# test:
# needs: [compute-projects]
# uses: ./.github/workflows/test.yml
# with:
# mainBranch: "last-tag"
# secrets:
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
#
# e2e-test:
# needs: [test]
# uses: ./.github/workflows/e2e-test.yml
# with:
# mainBranch: "last-tag"
# secrets:
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
#
# build:
# needs: [test, e2e-test]
# uses: ./.github/workflows/build.yml
# with:
# mainBranch: "last-tag"
# secrets:
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
#
# upload-badge:
# needs: [ test, e2e-test ]
# uses: ./.github/workflows/upload-badge.yml
# with:
# mainBranch: "last-tag"
# secrets:
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
# GIST_SECRET: ${{ secrets.GIST_SECRET }}
# GIST_ID: ${{ secrets.GIST_ID }}
compute-projects:
uses: ./.github/workflows/compute-projects.yml
with:
tagChoice: ${{ github.event.inputs.tagChoice }}
project1: ${{ github.event.inputs.project1 }}
project2: ${{ github.event.inputs.project2 }}
project3: ${{ github.event.inputs.project3 }}
project4: ${{ github.event.inputs.project4 }}

# bump-version:
# needs: [build]
# uses: ./.github/workflows/bump-version.yml
# with:
# projects: ${{ needs.compute-projects.outputs.finalProjects }}
# beta-release: ${{ fromJSON(github.event.inputs.beta-release) }}
# dry-run: ${{ fromJSON(github.event.inputs.dry-run) }}
# secrets:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# GITHUB_TOKEN_SECRET: ${{ secrets.GITHUB_TOKEN }}
# PAT: ${{secrets.PAT}}
test:
needs: [compute-projects]
uses: ./.github/workflows/test.yml
with:
mainBranch: "last-tag"
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

e2e-test:
needs: [test]
uses: ./.github/workflows/e2e-test.yml
with:
mainBranch: "last-tag"
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

build:
needs: [test, e2e-test]
uses: ./.github/workflows/build.yml
with:
mainBranch: "last-tag"
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

upload-badge:
needs: [ test, e2e-test ]
uses: ./.github/workflows/upload-badge.yml
with:
mainBranch: "last-tag"
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
GIST_SECRET: ${{ secrets.GIST_SECRET }}
GIST_ID: ${{ secrets.GIST_ID }}

bump-version:
needs: [build]
uses: ./.github/workflows/bump-version.yml
with:
projects: ${{ needs.compute-projects.outputs.finalProjects }}
beta-release: ${{ fromJSON(github.event.inputs.beta-release) }}
dry-run: ${{ fromJSON(github.event.inputs.dry-run) }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN_SECRET: ${{ secrets.GITHUB_TOKEN }}
PAT: ${{secrets.PAT}}

publish:
if: ${{ fromJSON(github.event.inputs.dry-run) == false }}
# needs: [bump-version]
needs: [bump-version]
uses: ./.github/workflows/publish.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
18 changes: 0 additions & 18 deletions libs/json-api/json-api-nestjs-microorm/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
{
"name": "@klerick/json-api-nestjs-microorm",
"version": "0.1.0-beta.1",
"license": "MIT",
"private": false,
"contributors": [
{
"email": "[email protected]",
"name": "Aleksandr Kharkovey"
}
],
"repository": {
"type": "git",
"url": "https://github.com/klerick/nestjs-json-api.git"
},
"engines": {
"node": ">= 20.0.0"
},
"type": "commonjs",
"main": "./src/index.js",
"types": "./src/index.d.ts",
Expand All @@ -33,8 +18,5 @@
"tslib": ">2.3.0",
"reflect-metadata": "^0.1.12 || ^0.2.0",
"rxjs": "^7.1.0"
},
"publishConfig": {
"access": "public"
}
}
26 changes: 25 additions & 1 deletion libs/json-api/json-api-nestjs-microorm/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type:publish"
],
"targets": {
"build": {
"build-common": {
"dependsOn": [
{
"projects": [
Expand All @@ -37,6 +37,30 @@
"updateBuildableProjectDepsInPackageJson": true
}
},
"build": {
"executor": "nx:run-commands",
"dependsOn": [
"build-common"
],
"options": {
"outputPath": "dist/{projectRoot}",
"commands": [
{
"command": "node tools/scripts/prepare-package-json.mjs json-api-nestjs-microorm"
},
{
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs-microorm",
"forwardAllArgs": false
},
{
"command": "ln -s $(pwd)/dist/{projectRoot} node_modules/@klerick/json-api-nestjs-microorm",
"forwardAllArgs": false
}
],
"cwd": "./",
"parallel": false
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": [
Expand Down
18 changes: 0 additions & 18 deletions libs/json-api/json-api-nestjs-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
{
"name": "@klerick/json-api-nestjs-sdk",
"version": "10.0.0-beta.1",
"license": "MIT",
"private": false,
"contributors": [
{
"email": "[email protected]",
"name": "Aleksandr Kharkovey"
}
],
"repository": {
"type": "git",
"url": "https://github.com/klerick/nestjs-json-api.git"
},
"engines": {
"node": ">= 20.0.0"
},
"description": "Helper for client JsonAPi Plugin for NestJs",
"keywords": [
"nestjs",
Expand Down Expand Up @@ -57,8 +42,5 @@
"./mjs/src/ngModule.d.ts"
]
}
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions libs/json-api/json-api-nestjs-sdk/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
"command": "cp dist/{projectRoot}/cjs/package.json dist/{projectRoot}/package.json",
"forwardAllArgs": false
},
{
"command": "node tools/scripts/prepare-package-json.mjs json-api-nestjs-sdk"
},
{
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs-sdk",
"forwardAllArgs": false
Expand Down
20 changes: 1 addition & 19 deletions libs/json-api/json-api-nestjs-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
{
"name": "@klerick/json-api-nestjs-shared",
"version": "1.0.0-beta.1",
"license": "MIT",
"private": false,
"contributors": [
{
"email": "[email protected]",
"name": "Aleksandr Kharkovey"
}
],
"repository": {
"type": "git",
"url": "https://github.com/klerick/nestjs-json-api.git"
},
"engines": {
"node": ">= 20.0.0"
},
"description": "Shared Helper for JsonApi Plugin for NestJs",
"keywords": [
"nestjs",
Expand All @@ -34,8 +19,5 @@
"type": "commonjs",
"main": "./cjs/src/index.js",
"types": "./cjs/src/index.d.ts",
"module": "./mjs/src/index.js",
"publishConfig": {
"access": "public"
}
"module": "./mjs/src/index.js"
}
3 changes: 3 additions & 0 deletions libs/json-api/json-api-nestjs-shared/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
"command": "[ ! -f dist/{projectRoot}/cjs/package.json ] || cp dist/{projectRoot}/cjs/package.json dist/{projectRoot}/package.json",
"forwardAllArgs": false
},
{
"command": "node tools/scripts/prepare-package-json.mjs json-api-nestjs-shared"
},
{
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs-shared",
"forwardAllArgs": false
Expand Down
20 changes: 1 addition & 19 deletions libs/json-api/json-api-nestjs-typeorm/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
{
"name": "@klerick/json-api-nestjs-typeorm",
"version": "0.1.0-beta.1",
"license": "MIT",
"private": false,
"contributors": [
{
"email": "[email protected]",
"name": "Aleksandr Kharkovey"
}
],
"repository": {
"type": "git",
"url": "https://github.com/klerick/nestjs-json-api.git"
},
"engines": {
"node": ">= 20.0.0"
},
"dependencies": {
"tslib": ">2.3.0",
"reflect-metadata": "^0.1.12 || ^0.2.0",
Expand All @@ -33,8 +18,5 @@
"typeorm",
"microorm",
"CRUD"
],
"publishConfig": {
"access": "public"
}
]
}
26 changes: 25 additions & 1 deletion libs/json-api/json-api-nestjs-typeorm/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"projectType": "library",
"tags": ["type:lib", "lib:json-api-nestjs", "lib:json-api-nestjs-typeorm", "type:publish"],
"targets": {
"build": {
"build-common": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
Expand All @@ -19,6 +19,30 @@
"updateBuildableProjectDepsInPackageJson": true
}
},
"build": {
"executor": "nx:run-commands",
"dependsOn": [
"build-common"
],
"options": {
"outputPath": "dist/{projectRoot}",
"commands": [
{
"command": "node tools/scripts/prepare-package-json.mjs json-api-nestjs-typeorm"
},
{
"command": "mkdir -p node_modules/@klerick && rm -rf node_modules/@klerick/json-api-nestjs-typeorm",
"forwardAllArgs": false
},
{
"command": "ln -s $(pwd)/dist/{projectRoot} node_modules/@klerick/json-api-nestjs-typeorm",
"forwardAllArgs": false
}
],
"cwd": "./",
"parallel": false
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
Expand Down
18 changes: 0 additions & 18 deletions libs/json-api/json-api-nestjs/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
{
"name": "@klerick/json-api-nestjs",
"version": "10.0.0-beta.1",
"license": "MIT",
"private": false,
"contributors": [
{
"email": "[email protected]",
"name": "Aleksandr Kharkovey"
}
],
"repository": {
"type": "git",
"url": "https://github.com/klerick/nestjs-json-api.git"
},
"engines": {
"node": ">= 20.0.0"
},
"type": "commonjs",
"description": "JsonApi Plugin for NestJs",
"keywords": [
Expand All @@ -31,8 +16,5 @@
"tslib": ">2.3.0",
"reflect-metadata": "^0.1.12 || ^0.2.0",
"rxjs": "^7.1.0"
},
"publishConfig": {
"access": "public"
}
}
Loading