Skip to content

Commit

Permalink
publish to both github and npm registries
Browse files Browse the repository at this point in the history
Signed-off-by: Robin van Baalen <[email protected]>
  • Loading branch information
rvanbaalen committed Nov 24, 2022
1 parent f5dcf07 commit 500c893
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@rvanbaalen:registry=https://npm.pkg.github.com
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "@rvanbaalen/hashparser",
"version": "2.0.1",
"version": "2.0.2",
"author": "Robin S. van Baalen",
"main": "dist/hashparser.min.js",
"license": "MIT",
"type": "module",
"scripts": {
"build": "node ./terser.js",
"git-add": "git add ./dist/hashparser.min.js ./dist/hashparser.min.js.map"
"git-add": "git add ./dist/hashparser.min.js ./dist/hashparser.min.js.map",
"postpublish": "npm run publish-npm",
"publish-npm": "npm publish --access public --ignore-scripts --@rvanbaalen:registry='https://registry.npmjs.org'"
},
"repository": {
"type": "git",
Expand All @@ -20,5 +22,8 @@
"devDependencies": {
"pre-commit": "^1.2.2",
"terser": "^5.16.0"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}

0 comments on commit 500c893

Please sign in to comment.