From f27ceed0081eaeb7a3fefcea6fcabfbd080777b2 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Fri, 29 Dec 2023 13:05:26 +0530 Subject: [PATCH] remixd publish script --- package.json | 1 + release-process.md | 30 +++++++++++++++++------------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 59e61997c8..1a3225f3d5 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "lint:libs": "nx run-many --target=lint --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remix-ws-templates,remixd,remix-ui-tree-view,remix-ui-modal-dialog,remix-ui-toaster,remix-ui-helper,remix-ui-debugger-ui,remix-ui-workspace,remix-ui-static-analyser,remix-ui-checkbox,remix-ui-settings,remix-core-plugin,remix-ui-renderer,remix-ui-publish-to-storage,remix-ui-solidity-compiler,solidity-unit-testing,remix-ui-plugin-manager,remix-ui-terminal,remix-ui-editor,remix-ui-app,remix-ui-tabs,remix-ui-panel,remix-ui-run-tab,remix-ui-permission-handler,remix-ui-search,remix-ui-file-decorators,remix-ui-tooltip-popup,ghaction-helper", "build:libs": "nx run-many --target=build --parallel=false --with-deps=true --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remix-ws-templates,remixd,ghaction-helper", "test:libs": "nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-tests,remix-url-resolver", + "publish:remixd": "yarn build remixd && cd ./dist/libs/remixd && yarn publish", "publish:libs": "yarn run build:libs && lerna publish --skip-git && yarn run bumpVersion:libs", "publishDev:libs": "yarn run build:libs && lerna publish --npm-tag alpha --skip-git && yarn run bumpVersion:libs", "build:e2e": "node apps/remix-ide-e2e/src/buildGroupTests.js && tsc -p apps/remix-ide-e2e/tsconfig.e2e.json", diff --git a/release-process.md b/release-process.md index dec2da597b..f0a1e8590e 100644 --- a/release-process.md +++ b/release-process.md @@ -33,24 +33,28 @@ Update the GitHub release link in this file: `remix-project/libs/remix-ui/home-t This will set latest release details in the first slide of `Featured` section. -## remixd NPM release -Once testing is completed, release will start by publishing `remixd`.if required, `remixd` can be also released individually +## Remix Project NPM packages publishing - - Bump version for remixd in `./libs/remixd/package.json` - - Run: `yarn build remixd` - - Move to build directory: `cd ./dist/libs/remixd` - - Publish to NPM: `npm publish` (Make sure you are logged in to NPM) - - create bump PR to master +Once testing is completed, release will start by publishing Remix NPM packages. -## Remix libraries NPM release - - Make sure you are on latest `master` branch - - `git pull origin master` - - `git checkout -b bumpLibsVersion` - - `yarn run publish:libs ` + - Make sure you are on `master` branch: `git checkout master` + - Pull the latest: `git pull origin master` + - Create a branch: `git checkout -b bumpLibsVersion` + +### remixd NPM release + + `yarn run publish:remixd` + +This command will ask for a new version. + +### Other libraries NPM release + + `yarn run publish:libs ` This command uses `lerna` and is solely responsible for publishing all the remix libraries. It will ask for a new version of each library. Make sure you are logged in to NPM. -Once this command has been run, the versions for each remix library will be updated to latest in the libs' package.json file. +Once these command run successfully, the version for each remix library will be updated to latest in the libs' package.json file. + - Create and merge bump PR to master ## Remix IDE Release