Skip to content

Commit 08ea837

Browse files
authored
Merge pull request #84 from github/publish-to-npm-and-github-packages
Publish by default to npm and publish to gpr as a postpublish step
2 parents 6259c32 + 746353b commit 08ea837

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"clean": "tsc --build --clean",
3131
"lint": "eslint . --ignore-path .gitignore",
3232
"pretest": "npm run build",
33-
"test": "npm run lint && karma start test/karma.config.cjs"
33+
"test": "npm run lint && karma start test/karma.config.cjs",
34+
"postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
3435
},
3536
"prettier": "@github/prettier-config",
3637
"devDependencies": {
@@ -51,8 +52,5 @@
5152
"tslib": "^2.0.3",
5253
"typedoc": "^0.19.2",
5354
"typescript": "^4.0.5"
54-
},
55-
"publishConfig": {
56-
"registry": "https://npm.pkg.github.com/"
5755
}
5856
}

0 commit comments

Comments
 (0)