Skip to content

Commit

Permalink
feat: Also release on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Nov 9, 2024
1 parent 93d6119 commit e98bb9f
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 26 deletions.
9 changes: 8 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
}
],
"@semantic-release/github",
"@semantic-release/npm"
"@semantic-release/npm",
[
"@semantic-release/exec",
{
"verifyConditionsCmd": "npm whoami --registry https://npm.pkg.github.com",
"publishCmd": "npm publish --registry https://npm.pkg.github.com --no-git-tag-version"
}
]
]
}
86 changes: 63 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
"test:types": "tsc",
"test:prettier": "prettier --check .",
"prepare": "husky",
"release": "semantic-release"
"release": "run-s release:*",
"release:semantic-release": "semantic-release",
"release:on-github": "npm publish --registry https://npm.pkg.github.com --no-git-tag-version"
},
"lint-staged": {
".github/workflows/*.{yml,yaml}": [
Expand Down Expand Up @@ -83,10 +85,11 @@
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/eslint__js": "^8.42.3",
"@types/eslint-config-prettier": "^6.11.3",
"@types/eslint-plugin-jsx-a11y": "^6.9.0",
"@types/eslint__js": "^8.42.3",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"eslint": "^9.14.0",
Expand Down

0 comments on commit e98bb9f

Please sign in to comment.