Skip to content

Commit

Permalink
fix: update release commands (#66)
Browse files Browse the repository at this point in the history
`yarn` does not work with `release-it`

/task https://app.asana.com/0/1205443643383517/1205483024453105/f
  • Loading branch information
adrienlo authored Sep 12, 2023
1 parent 7d2c012 commit 5a644bb
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
# Releasing new versions

- In order to up the minor version, run: `yarn release`. For instance if the current version is 1.0.0, this will go to version 1.0.1.
- If you'd like to release a specific version, run `yarn release 1.2.3`.
- In order to up the minor version, run: `npm run release`. For instance if the current version is 1.0.0, this will go to version 1.0.1.
- If you'd like to release a specific version, run `npm run release 1.2.3`.
- This grunt task will ask the following questions, type `y` for all of them:

```
? Show updated files? Yes
M package.json
? Commit (Release 1.2.3)? Yes
? Tag (1.2.3)? Yes
? Push? Yes
? Publish test_track_js_client to npm? Yes
```
Example

```
$ npm run release
> test_track_js_client@2.1.0 release
> release-it
✔ yarn build
🚀 Let's release test_track_js_client (currently at 2.1.0)
Changelog:
* chore: bump version to 2.1.0 (#63) (bb6e765)
* chore: updated build config to support the latest fixes (#62) (fb1026e)
* fix: resolve pathing bug and add test coverage (#61) (10f781d)
* chore(deps): Update to latest npm modules (#60) (fcc5749)
? Select increment (next version): patch (2.1.1)
Changeset:
M package.json
? Publish test_track_js_client to npm? Yes
? Please enter OTP for npm: <YOUR OTP>
? Commit (Release 2.1.1)? Yes
? Tag (2.1.1)? Yes
? Push? Yes
```

0 comments on commit 5a644bb

Please sign in to comment.