Skip to content

Commit

Permalink
add script to bump version of the packages. And bump version for util…
Browse files Browse the repository at this point in the history
…s and display
  • Loading branch information
vemonet committed Nov 10, 2023
1 parent 45907af commit 375f260
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ To publish a new version of each package to NPM:

1. Edit the `package.json` files for each package to update them to the new version.

```bash
yarn bump --patch

# If you are using yarn v1, to prevent auto commit run:
yarn config set version-git-tag false
```

2. Run `yarn publish` from the root to build and publish all libraries:

```bash
Expand Down
3 changes: 2 additions & 1 deletion nanopub-display/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanopub/display",
"version": "0.0.7",
"version": "0.0.8",
"description": "A web component to display Nanopublications",
"author": {
"name": "Vincent Emonet",
Expand Down Expand Up @@ -34,6 +34,7 @@
"test:prod": "yarn test && MODE=prod wtr",
"test:all": "yarn test:dev && yarn test:prod",
"lint": "eslint 'src/**/*.ts' --ignore-path ../.gitignore --fix && lit-analyzer",
"version": "yarn version --no-git-tag-version",
"publish": "yarn build && npm publish",
"clean": "rimraf dist && rimraf node_modules"
},
Expand Down
3 changes: 2 additions & 1 deletion nanopub-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanopub/utils",
"version": "1.0.7",
"version": "1.0.8",
"description": "A JavaScript library for retrieving and querying nanopublications.",
"author": {
"name": "Tobias Kuhn",
Expand Down Expand Up @@ -30,6 +30,7 @@
"build:tsc": "tsc",
"lint": "eslint src --ext .ts --fix",
"clean": "rimraf dist && rimraf node_modules",
"version": "yarn version --no-git-tag-version",
"publish": "yarn build && npm publish"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dev": "nx run-many --target=dev",
"build": "nx run-many --target=build --parallel=false --output-style=stream",
"test": "nx run-many --target=test --parallel=false",
"bump": "nx run-many --target=version --parallel=false",
"publish": "yarn build && yarn workspaces foreach --no-private npm publish --access public",
"clean": "nx run-many --target=clean && rimraf .yarn/cache && rimraf node_modules",
"fmt": "prettier \"**/*.{ts,tsx,js,cjs,json,md,html}\" --ignore-path .gitignore --write",
Expand Down

0 comments on commit 375f260

Please sign in to comment.