我有一个电子应用程序,我想发布与semantic-release。
我需要在Github中创建一个matrix来在不同的平台上构建这个应用程序:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]现在,如果我在构建之前运行semantic-release ,它就会在中创建一个版本,并且构建无法更新现有的版本。
如果我想在编译后运行semantic-release ,
发布于 2022-10-17 08:37:58
您可以在干模式下运行semantic-release (--dry-run),它不会创建和发布发行版。然后通过grep获取下一个版本号。
export NEXT_VERSION=$(npx semantic-release --dry-run --branches main | grep -oE 'The next release version is [1234567890\.]+' | grep -oE '[1234567890\.]+')
echo $NEXT_VERSIONhttps://stackoverflow.com/questions/73625579
复制相似问题