Skip to content

Commit ad5a52d

Browse files
authored
Merge pull request #47 from github/publish-to-gpr-as-well
Publish to GPR as a postpublish step
2 parents 1fd7fa6 + 4ed82bf commit ad5a52d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"build-umd": "BABEL_ENV=umd babel include-fragment-element.js -o dist/index-umd.js && cp include-fragment-element.js.flow dist/index-umd.js.flow",
2020
"pretest": "npm run build",
2121
"test": "karma start ./test/karma.config.js",
22-
"prepublishOnly": "npm run build"
22+
"prepublishOnly": "npm run build",
23+
"postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
2324
},
2425
"devDependencies": {
2526
"@babel/cli": "^7.5.0",

0 commit comments

Comments
 (0)