Skip to content

Commit

Permalink
Update yarn lock after changeset version (#2969)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy authored Nov 22, 2023
1 parent e89af30 commit 5000aaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 35 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
version: yarn version:prepare
publish: yarn release
env:
NPM_CONFIG_PROVENANCE: true
Expand Down
32 changes: 0 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 5000aaa

Please sign in to comment.