Skip to content

Commit

Permalink
Fix up version + docs:version scripts
Browse files Browse the repository at this point in the history
New Docusaurus version and we are only going to publish a new one
when publishing a new major/minor version, instead of even on patch versions.

Don't know how to do this with npm scripts yet,
so will figure it out later.
  • Loading branch information
gustavohenke committed Jan 20, 2023
1 parent 03c2d88 commit 692c0f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -37,8 +37,7 @@
"prepublishOnly": "tsc",
"postpublish": "npm run docs:publish",
"test": "jest",
"lint": "eslint --ignore-path .gitignore 'src/**/*.ts' && prettier -c .",
"version": "npm run docs:version -- $npm_package_version && npm run docs:build && git add -A website"
"lint": "eslint --ignore-path .gitignore 'src/**/*.ts' && prettier -c ."
},
"engines": {
"node": ">= 8.0.0"
Expand Down
3 changes: 2 additions & 1 deletion website/package.json
Expand Up @@ -3,7 +3,8 @@
"start": "docusaurus start",
"build": "docusaurus build",
"publish-gh-pages": "docusaurus deploy",
"serve": "docusaurus serve"
"serve": "docusaurus serve",
"version": "docusaurus docs:version"
},
"devDependencies": {
"docusaurus": "^1.0.15"
Expand Down

0 comments on commit 692c0f9

Please sign in to comment.