Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: semrel-extra/zx-semrel
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.9.14
Choose a base ref
...
head repository: semrel-extra/zx-semrel
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.9.15
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Jun 3, 2022

  1. perf: impr debug notes

    antongolub committed Jun 3, 2022
    Copy the full SHA
    d8950ef View commit details
  2. Copy the full SHA
    ead0339 View commit details
Showing with 10 additions and 5 deletions.
  1. +5 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +4 −4 release.mjs
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [1.9.15](https://github.com/semrel-extra/zx-semrel/compare/v1.9.14...v1.9.15) (2022-06-03)

### Fixes & improvements
* perf: impr debug notes ([d8950ef](https://github.com/semrel-extra/zx-semrel/commit/d8950ef69cc0693b61b23d53a4ada341ce020d8b))

## [1.9.14](https://github.com/semrel-extra/zx-semrel/compare/v1.9.13...v1.9.14) (2022-06-03)

### Fixes & improvements
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zx-semrel",
"version": "1.9.14",
"version": "1.9.15",
"description": "zx-based release script as semantic-release alternative (PoC)",
"main": "./release.mjs",
"type": "module",
8 changes: 4 additions & 4 deletions release.mjs
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@ ${commits.join('\n')}`).join('\n')
// Prepare git commit and push
// Hint: PAT may be replaced with a SSH deploy token
// https://stackoverflow.com/questions/26372417/github-oauth2-token-how-to-restrict-access-to-read-a-single-private-repo
await $`echo 'git push'`
console.log('git push')
const releaseMessage = `chore(release): ${nextVersion} [skip ci]`
await $`git add -A .`
await $`git commit -am ${releaseMessage}`
@@ -125,14 +125,14 @@ ${commits.join('\n')}`).join('\n')
tag_name: nextTag,
body: releaseNotes
})
await $`echo 'github release'`
console.log('github release')
await $`curl -u ${GIT_COMMITTER_NAME}:${GITHUB_TOKEN} -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${repoName}/releases -d ${releaseData}`

// Publish npm artifact
await $`echo 'npm publish to https://registry.npmjs.org'`
console.log('npm publish to https://registry.npmjs.org')
await $`npm publish --no-git-tag-version --registry=https://registry.npmjs.org`

await $`echo 'npm publish to https://npm.pkg.github.com'`
console.log('npm publish to https://npm.pkg.github.com')
await $`echo "\`jq '.name="@${repoName}"' package.json\`" > package.json`
await $`npm publish --no-git-tag-version --registry=https://npm.pkg.github.com`