diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62dc215432..deda670cb7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,6 +35,7 @@ jobs: id: changesets uses: changesets/action@v1 with: + version: yarn version:prepare publish: yarn release env: NPM_CONFIG_PROVENANCE: true diff --git a/README.md b/README.md index a612834350..927ea7cda2 100644 --- a/README.md +++ b/README.md @@ -50,38 +50,6 @@ If you are using [VSCode](https://code.visualstudio.com/), you can launch the [m See [`rust/README.md`](rust/README.md) -### Publishing JS/TS Packages - -Packages can be versioned and published all at once with commands from the root. - -First, increment the version to the desired value: - -```bash -# An example of a prerelease version -yarn version:prepare 1.1.0-beta0 -# Or a release version -yarn version:prepare 1.1.0 -``` - -Commit this preparation so that it is clear which commit the release is from. - -Next, ensure packages are cleaned and rebuilt: - -```bash -yarn clean && yarn build -``` - -Finally, publish the packages to NPM - -```bash -# Note: If you have not yet logged in, first run yarn npm login -yarn publish:all --otp YOUR_OTP_HERE -# Or for a pre-release, include the tag -yarn publish:all --otp YOUR_OTP_HERE --tag beta -``` - -Tag the commit with the appropriate version, and then create a github release with a changelog against the previous version https://github.com/hyperlane-xyz/hyperlane-monorepo/releases/new - ### Release Agents - Tag the commit with the current date in the format `agents-yyyy-mm-dd`; e.g. `agents-2023-03-28`. diff --git a/package.json b/package.json index a909cd50e7..9adc0d9958 100644 --- a/package.json +++ b/package.json @@ -24,10 +24,9 @@ "lint": "yarn workspaces foreach --since --parallel run lint", "test": "yarn workspaces foreach --since --parallel run test", "coverage": "yarn workspaces foreach --since --parallel run coverage", - "version:prepare": "yarn changeset version", + "version:prepare": "yarn changeset version && yarn install", "version:check": "yarn changeset status", - "publish:all": "yarn changeset publish", - "release": "yarn build && yarn publish:all", + "release": "yarn build && yarn changeset publish", "postinstall": "husky install" }, "workspaces": [