Skip to content

Commit 65205ea

Browse files
authored
Merge pull request #4 from github/publish-to-gpr-as-well
Publish to GPR as a postpublish step
2 parents 140e39b + d6ff614 commit 65205ea

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66
"module": "dist/textarea-autosize.esm.js",
77
"license": "MIT",
88
"repository": "github/textarea-autosize",
9-
"files": ["dist"],
9+
"files": [
10+
"dist"
11+
],
1012
"scripts": {
1113
"clean": "rm -rf dist",
1214
"lint": "eslint textarea-autosize.js",
1315
"prebuild": "npm run clean && npm run lint && mkdir dist",
1416
"build": "rollup -c && npm run build-flow",
15-
"build-flow":
16-
"cp textarea-autosize.js.flow dist/textarea-autosize.esm.js.flow && cp textarea-autosize.js.flow dist/textarea-autosize.umd.js.flow",
17+
"build-flow": "cp textarea-autosize.js.flow dist/textarea-autosize.esm.js.flow && cp textarea-autosize.js.flow dist/textarea-autosize.umd.js.flow",
1718
"test": "echo",
1819
"pretest": "npm run build",
19-
"prepublishOnly": "npm run build"
20+
"prepublishOnly": "npm run build",
21+
"postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
2022
},
2123
"devDependencies": {
2224
"babel-cli": "^6.26.0",

0 commit comments

Comments
 (0)