From 0deb3a16514dd82f8045ce4b6159f4cefe27fc18 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:53:25 -0700 Subject: [PATCH 1/3] feat: support beta prerelease channel --- release.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.config.js b/release.config.js index 89a55e9..317e3c7 100644 --- a/release.config.js +++ b/release.config.js @@ -1,5 +1,5 @@ module.exports = { - branches: ['main'], + branches: ['main', {name: 'beta', prerelease: true}], plugins: [ '@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', From 980b8cfada919624654cc02aea9b6a53b0d43156 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:36:16 -0700 Subject: [PATCH 2/3] chore: allow semantic-release template strings --- release.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/release.config.js b/release.config.js index 317e3c7..a420146 100644 --- a/release.config.js +++ b/release.config.js @@ -1,3 +1,6 @@ +// semantic-release parses curly-brace template items in plain strings: +/* eslint-disable no-template-curly-in-string */ + module.exports = { branches: ['main', {name: 'beta', prerelease: true}], plugins: [ From d0f3897bf551e0129b42d8315589459678e32977 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:54:30 -0700 Subject: [PATCH 3/3] fix: try to store npm tarball in /tmp dir named with git hash --- release.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/release.config.js b/release.config.js index a420146..71b269f 100644 --- a/release.config.js +++ b/release.config.js @@ -15,7 +15,10 @@ module.exports = { [ '@semantic-release/npm', { - // Do not set 'tarballDir' without considering this issue: https://github.com/semantic-release/npm/issues/535 + // Do not set 'tarballDir' to a relative path without considering this issue: + // https://github.com/semantic-release/npm/issues/535 + // If the tarball is within the package directory, it will be included in the second 'prepack' run. + tarballDir: '/tmp/semantic-release-${nextRelease.gitHead}/' } ], [ @@ -30,7 +33,7 @@ module.exports = { [ '@semantic-release/github', { - assets: 'pack/*.tgz' + assets: '/tmp/semantic-release-${nextRelease.gitHead}/*.tgz' } ] ]