diff --git a/.github/workflows/release-manual.yml b/.github/workflows/release-manual.yml index 5f63046..a0dea42 100644 --- a/.github/workflows/release-manual.yml +++ b/.github/workflows/release-manual.yml @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8e304b0..da98013 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ node_modules dist .env docs + +.nx/cache \ No newline at end of file diff --git a/lerna.json b/lerna.json index a626e01..113fb3f 100644 --- a/lerna.json +++ b/lerna.json @@ -5,8 +5,10 @@ "version": { "createRelease": "github", "conventionalCommits": true, - "allowBranch": ["main", "develop"], + "allowBranch": [ + "main" + ], "message": "chore(release): publish" } } -} +} \ No newline at end of file diff --git a/nx.json b/nx.json index 64b392e..6bf2048 100644 --- a/nx.json +++ b/nx.json @@ -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" + ] } -} +} \ No newline at end of file diff --git a/packages/react-uploader/package.json b/packages/react-uploader/package.json index 282c3b6..843105c 100644 --- a/packages/react-uploader/package.json +++ b/packages/react-uploader/package.json @@ -81,4 +81,4 @@ "react hook file upload", "front-end" ] -} \ No newline at end of file +}