zx-bulk-release 1.19.2 → 1.19.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [1.19.3](https://github.com/semrel-extra/zx-bulk-release/compare/v1.19.2...v1.19.3) (2022-07-20)
2
+
3
+ ### Fixes & improvements
4
+ * perf: use PAT instead of basic auth for api.github.com calls ([c153615](https://github.com/semrel-extra/zx-bulk-release/commit/c153615b145f934cd715dc1523bfa99070f1e60e))
5
+
1
6
  ## [1.19.2](https://github.com/semrel-extra/zx-bulk-release/compare/v1.19.1...v1.19.2) (2022-07-19)
2
7
 
3
8
  ### Fixes & improvements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zx-bulk-release",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
4
4
  "description": "zx-based alternative for multi-semantic-release",
5
5
  "type": "module",
6
6
  "exports": "./src/main/js/index.js",
@@ -16,7 +16,7 @@
16
16
  "zx-extra": "^2.5.0"
17
17
  },
18
18
  "devDependencies": {
19
- "c8": "^7.11.3",
19
+ "c8": "^7.12.0",
20
20
  "uvu": "^0.5.6",
21
21
  "verdaccio": "^5.13.3"
22
22
  },
@@ -43,8 +43,8 @@ export const pushMeta = async (pkg) => {
43
43
  export const ghRelease = async (pkg) => {
44
44
  console.log(`[${pkg.name}] create gh release`)
45
45
 
46
- const {ghUser, ghToken} = parseEnv($.env)
47
- if (!ghToken || !ghUser) return null
46
+ const {ghToken} = parseEnv($.env)
47
+ if (!ghToken) return null
48
48
 
49
49
  const {name, version, absPath: cwd} = pkg
50
50
  const {repoName} = await parseRepo(cwd)
@@ -56,7 +56,7 @@ export const ghRelease = async (pkg) => {
56
56
  body: releaseNotes
57
57
  })
58
58
 
59
- await $.o({cwd})`curl -u ${ghUser}:${ghToken} -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${repoName}/releases -d ${releaseData}`
59
+ await $.o({cwd})`curl -H "Authorization: token ${ghToken}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${repoName}/releases -d ${releaseData}`
60
60
  }
61
61
 
62
62
  const pushChangelog = async (pkg) => {