Skip to content

Commit

Permalink
Merge pull request #21 from uploadcare/ci/fix-deploy-npm
Browse files Browse the repository at this point in the history
ci: updated nx and lerna repair
  • Loading branch information
egordidenko authored May 23, 2024
2 parents 2e1266b + c13583b commit 6c26c87
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
if [ ${{ github.base_ref }} = develop ]; then
npx lerna version --conventional-commits --conventional-prerelease --preid alpha --yes
else
npx lerna version --conventional-commits --conventional-graduate --yes
fi
npx lerna version --conventional-commits --conventional-graduate --yes
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npx lerna publish from-git --yes
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
dist
.env
docs

.nx/cache
6 changes: 4 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"version": {
"createRelease": "github",
"conventionalCommits": true,
"allowBranch": ["main", "develop"],
"allowBranch": [
"main"
],
"message": "chore(release): publish"
}
}
}
}
24 changes: 17 additions & 7 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,28 @@
"targetDefaults": {
"dev": {
"cache": true,
"dependsOn": ["^dev"]
"dependsOn": [
"^dev"
]
},
"build": {
"cache": true,
"dependsOn": ["^build"]
"dependsOn": [
"^build"
]
},
"preview": {
"dependsOn": []
},
"test": {
"cache": true,
"dependsOn": ["^test"]
}
},
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"sharedGlobals": [],
"production": [
"default"
]
}
}
}
2 changes: 1 addition & 1 deletion packages/react-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@
"react hook file upload",
"front-end"
]
}
}

0 comments on commit 6c26c87

Please sign in to comment.