Update yarn lock after changeset version (#2969)

pull/2971/head
J M Rossy 11 months ago committed by GitHub
parent e89af301e6
commit 5000aaa448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .github/workflows/release.yml
  2. 32
      README.md
  3. 5
      package.json

@ -35,6 +35,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
version: yarn version:prepare
publish: yarn release
env:
NPM_CONFIG_PROVENANCE: true

@ -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`.

@ -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": [

Loading…
Cancel
Save