Skip to content

Commit

Permalink
Merge pull request #84 from github/publish-to-npm-and-github-packages
Browse files Browse the repository at this point in the history
Publish by default to npm and publish to gpr as a postpublish step
  • Loading branch information
koddsson committed Nov 24, 2020
2 parents 6259c32 + 746353b commit 08ea837
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"clean": "tsc --build --clean",
"lint": "eslint . --ignore-path .gitignore",
"pretest": "npm run build",
"test": "npm run lint && karma start test/karma.config.cjs"
"test": "npm run lint && karma start test/karma.config.cjs",
"postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
},
"prettier": "@github/prettier-config",
"devDependencies": {
Expand All @@ -51,8 +52,5 @@
"tslib": "^2.0.3",
"typedoc": "^0.19.2",
"typescript": "^4.0.5"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}

0 comments on commit 08ea837

Please sign in to comment.