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.15.0
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.15.1
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Jul 21, 2022

  1. Copy the full SHA
    4f2a990 View commit details
  2. Copy the full SHA
    097936f View commit details
Showing with 7 additions and 3 deletions.
  1. +5 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +1 −2 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.15.1](https://github.com/semrel-extra/zx-semrel/compare/v1.15.0...v1.15.1) (2022-07-21)

### Fixes & improvements
* fix: let github registry use global npmrc ([4f2a990](https://github.com/semrel-extra/zx-semrel/commit/4f2a990a4bcf70de7a78b1418b8c0a96691d8ead))

## [1.15.0](https://github.com/semrel-extra/zx-semrel/compare/v1.14.3...v1.15.0) (2022-07-21)

### Features
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.15.0",
"version": "1.15.1",
"description": "zx-based release script as semantic-release alternative (PoC)",
"main": "./release.mjs",
"type": "module",
3 changes: 1 addition & 2 deletions release.mjs
Original file line number Diff line number Diff line change
@@ -147,7 +147,6 @@ ${commits.join('\n')}`).join('\n')
_npmrc = path.resolve(fs.realpathSync(os.tmpdir()), 'zx-semrel', Math.random().toString(36).substring(2), '.npmrc')
fs.outputFileSync(_npmrc, `
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
`)
return _npmrc
})()
@@ -160,7 +159,7 @@ ${commits.join('\n')}`).join('\n')

console.log(`npm publish @${repoName} 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 --userconfig ${npmrc}`
await $`npm publish --no-git-tag-version --registry=https://npm.pkg.github.com`
}

console.log(chalk.bold('Great success!'))