Skip to content

Commit

Permalink
Fix publish ci 2 (#2748)
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox authored Oct 8, 2024
1 parent 915f0c3 commit 34d5293
Show file tree
Hide file tree
Showing 6 changed files with 9,579 additions and 1,373 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
- name: 'Build'
run: |
npm run clean
NODE_OPTIONS=--max_old_space_size=4096 npm run build
# Runs adapter tests on all supported node versions and OSes
Expand Down Expand Up @@ -166,7 +167,7 @@ jobs:
with:
result-encoding: string
script: |
return require('./packages/admin/package.json').version;
return require('./lerna.json').version;
- name: Extract the commit body
if: steps.automerge.outputs.mergeResult == 'merged'
Expand All @@ -193,12 +194,7 @@ jobs:
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm whoami
git checkout -- package-lock.json
cd packages/jsonConfig
npm publish
cd ../dm-gui-components
npm publish
cd ../admin
npm publish
npx lerna publish from-package --yes
- name: Create Github Release
if: steps.automerge.outputs.mergeResult == 'merged'
Expand Down
25 changes: 25 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": "7.2.2",
"packages": [
"packages/*"
],
"command": {
"run": {
"stream": true
},
"version": {
"npmClientArgs": [
"-f"
],
"allowBranch": [
"master"
],
"ignoreChanges": [
"*.md"
],
"exact": true,
"forcePublish": true
}
},
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
25 changes: 25 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [],
"parallel": 5
}
}
},
"targetDefaults": {
"build": {
"dependsOn": ["^build", "prebuild"]
},
"test": {
"dependsOn": ["build"]
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [],
"production": ["default"]
}
}
Loading

0 comments on commit 34d5293

Please sign in to comment.