@semantic-release/github 5.3.5 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/verify.js +9 -0
- package/package.json +3 -3
package/lib/verify.js
CHANGED
|
@@ -27,6 +27,7 @@ const VALIDATORS = {
|
|
|
27
27
|
|
|
28
28
|
module.exports = async (pluginConfig, context) => {
|
|
29
29
|
const {
|
|
30
|
+
env,
|
|
30
31
|
options: {repositoryUrl},
|
|
31
32
|
logger,
|
|
32
33
|
} = context;
|
|
@@ -52,6 +53,14 @@ module.exports = async (pluginConfig, context) => {
|
|
|
52
53
|
} else if (githubToken && !errors.find(({code}) => code === 'EINVALIDPROXY')) {
|
|
53
54
|
const github = getClient({githubToken, githubUrl, githubApiPathPrefix, proxy});
|
|
54
55
|
|
|
56
|
+
// https://github.com/semantic-release/github/issues/182
|
|
57
|
+
// Do not check for permissions in GitHub actions, as the provided token is an installation access token.
|
|
58
|
+
// github.repos.get({repo, owner}) does not return the "permissions" key in that case. But GitHub Actions
|
|
59
|
+
// have all permissions required for @semantic-release/github to work
|
|
60
|
+
if (env.GITHUB_ACTION) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
55
64
|
try {
|
|
56
65
|
const {
|
|
57
66
|
data: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semantic-release/github",
|
|
3
3
|
"description": "semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.4.2",
|
|
5
5
|
"author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)",
|
|
6
6
|
"ava": {
|
|
7
7
|
"helpers": [
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"aggregate-error": "^3.0.0",
|
|
27
27
|
"bottleneck": "^2.18.1",
|
|
28
28
|
"debug": "^4.0.0",
|
|
29
|
-
"dir-glob": "^
|
|
29
|
+
"dir-glob": "^3.0.0",
|
|
30
30
|
"fs-extra": "^8.0.0",
|
|
31
|
-
"globby": "^
|
|
31
|
+
"globby": "^10.0.0",
|
|
32
32
|
"http-proxy-agent": "^2.1.0",
|
|
33
33
|
"https-proxy-agent": "^2.2.1",
|
|
34
34
|
"issue-parser": "^4.0.0",
|