|
13 | 13 | "lint": "tslint --project tsconfig.json --config tslint.json",
|
14 | 14 | "semantic-release": "semantic-release",
|
15 | 15 | "server": "node ./tests/integration/mockServer.js",
|
16 |
| - "server:dev": "nodemon ./tests/integration/mockServer.js" |
| 16 | + "server:dev": "nodemon ./tests/integration/mockServer.js", |
| 17 | + "publish:github": "npm config set '//npm.pkg.github.com/:_authToken' $GH_TOKEN && npm publish --registry https://npm.pkg.github.com" |
17 | 18 | },
|
18 | 19 | "main": "dist/index.cjs.js",
|
19 | 20 | "browser": "dist/typeform-api.js",
|
20 | 21 | "module": "dist/index.esm.js",
|
21 | 22 | "typings": "dist/index.d.ts",
|
22 | 23 | "engines": {
|
23 |
| - "node": ">=8" |
| 24 | + "node": ">=12" |
24 | 25 | },
|
25 | 26 | "repository": {
|
26 | 27 | "type": "git",
|
|
54 | 55 | "devDependencies": {
|
55 | 56 | "@commitlint/cli": "^8.1.0",
|
56 | 57 | "@commitlint/config-conventional": "^8.1.0",
|
| 58 | + "@semantic-release/exec": "^5.0.0", |
57 | 59 | "@types/jest": "^24.0.18",
|
58 | 60 | "axios-mock-adapter": "^1.17.0",
|
59 | 61 | "husky": "^4.0.0-beta.1",
|
|
87 | 89 | "pre-commit": "npm run lint",
|
88 | 90 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
89 | 91 | }
|
| 92 | + }, |
| 93 | + "release": { |
| 94 | + "plugins": [ |
| 95 | + "@semantic-release/commit-analyzer", |
| 96 | + "@semantic-release/release-notes-generator", |
| 97 | + "@semantic-release/npm", |
| 98 | + [ |
| 99 | + "@semantic-release/exec", |
| 100 | + { |
| 101 | + "successCmd": "yarn run publish:github" |
| 102 | + } |
| 103 | + ], |
| 104 | + "@semantic-release/github" |
| 105 | + ] |
90 | 106 | }
|
91 | 107 | }
|
0 commit comments