From a3395f76cca1ff151cbdc70ac8edcf1b5eabdcad Mon Sep 17 00:00:00 2001 From: gchoqueux Date: Wed, 11 Dec 2024 15:07:15 +0100 Subject: [PATCH] fix(publish): refactor publish-next --- package.json | 2 +- packages/Geographic/package.json | 2 +- packages/Main/package.json | 2 +- packages/Widgets/package.json | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index af2b0f227b..54929e9494 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "watch": "node ./config/concurrently.mjs watch", "changelog": "conventional-changelog -n ./config/conventionalChangelog/config.cjs -i changelog.md -s", "bump": "if [ -z $npm_config_level ]; then grunt bump:minor; else grunt bump:$npm_config_level; fi && npm run changelog && npm run update-packages && npm install && git add -A && git commit --amend --no-edit", - "publish-next": "npm run publish-next --workspaces --if-present && npm publish --access public --tag=next --workspaces", + "publish-next": "npm run publish-next --workspaces --if-present", "publish-latest2": "npm publish --access public --tag=latest --provenance", "publish-latest3": "npm publish --access public --tag=latest --provenance --workspaces", "publish-latest": "npm run publish-latest --workspaces --if-present", diff --git a/packages/Geographic/package.json b/packages/Geographic/package.json index 9c4d675857..7c14acd3d2 100644 --- a/packages/Geographic/package.json +++ b/packages/Geographic/package.json @@ -17,7 +17,7 @@ "test-with-coverage_lcov": "c8 -n src --reporter=lcov cross-env npm run test-unit", "watch": "npm run transpile -- --watch", "publish-latest": "npm publish --access public --tag=latest", - "publish-next": "npm version prerelease --preid next" + "publish-next": "npm version prerelease --preid next && npm publish --access public --tag=next" }, "files": [ "*.md", diff --git a/packages/Main/package.json b/packages/Main/package.json index dbbf1627ff..1b797ff031 100644 --- a/packages/Main/package.json +++ b/packages/Main/package.json @@ -20,7 +20,7 @@ "prepublishOnly": "npx copyfiles -u 1 \"../../examples/**/*\" ./examples/ && npx copyfiles -u 1 \"../../docs/**/*\" ./docs/ && npx copyfiles -u 1 \"../../dist/**/*\" ./dist/ ", "postpublish": "node clean.cjs", "publish-latest": "npm publish --access public --tag=latest", - "publish-next": "npm version prerelease --preid next && npm run update-package", + "publish-next": "npm version prerelease --preid next && npm run update-package && npm publish --access public --tag=next", "update-package": "npm remove @gchoqueux/geographic && npm install @gchoqueux/geographic@$npm_package_version --save" }, "c8": { diff --git a/packages/Widgets/package.json b/packages/Widgets/package.json index a994cbe813..39169db49b 100644 --- a/packages/Widgets/package.json +++ b/packages/Widgets/package.json @@ -12,8 +12,7 @@ "copy_transpile": "npx copyfiles -u 1 \"./lib/**/*\" ../Main/lib/Utils/gui/", "transpileOnly": "cross-env BABEL_DISABLE_CACHE=1 babel src --out-dir lib --extensions .js,.ts", "transpile": "npm run transpileOnly && npm run copy_transpile", - "watch": "npm run transpileOnly -- --watch", - "publish-next": "npm version prerelease --preid next" + "watch": "npm run transpileOnly -- --watch" }, "files": [ "*.md",