You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
branches:
- master# @todo enable automated release for all branches once some outstanding branches with non-compliant names are closed# - name: '**'# prerelease: true
- name: cicdprerelease: trueplugins:
- '@semantic-release/commit-analyzer'
- '@semantic-release/release-notes-generator'
- '@semantic-release/changelog'
- - '@semantic-release/exec'# This hook is run only if a release is to be made# We create source-able file so future workflow steps can easily get to release metadata
- prepareCmd: | RELEASE_VERSION="${nextRelease.version}" echo "Version to be released: $RELEASE_VERSION" cat > version.sh <<-EOF #!/bin/bash export RELEASE_VERSION="$RELEASE_VERSION" export RELEASE_CHANNEL="${nextRelease.channel}" export RELEASE_HEAD="${nextRelease.gitHead}" export RELEASE_NOTES="${nextRelease.notes}" export RELEASE_TAG="${nextRelease.gitTag}" export RELEASE_TYPE="${nextRelease.type}" EOF
- - '@semantic-release/npm'
- npmPublish: false
- - '@semantic-release/git'
- assets:
- CHANGELOG.md
- package.json
- package-lock.json
- - '@semantic-release/github'
- assets:
- path: '**'label: distribution filesfailComment: falsesuccessComment: false
Note I am able to make releases by making npm plugin generate a tarball and explicitly using that tarball in assets config. So a config like this works.
branches:
- master# @todo enable automated release for all branches once some outstanding branches with non-compliant names are closed# - name: '**'# prerelease: true
- name: cicdprerelease: trueplugins:
- '@semantic-release/commit-analyzer'
- '@semantic-release/release-notes-generator'
- '@semantic-release/changelog'
- - '@semantic-release/exec'# This hook is run only if a release is to be made# We create source-able file so future workflow steps can easily get to release metadata
- prepareCmd: | RELEASE_VERSION="${nextRelease.version}" echo "Version to be released: $RELEASE_VERSION" cat > version.sh <<-EOF #!/bin/bash export RELEASE_VERSION="$RELEASE_VERSION" export RELEASE_CHANNEL="${nextRelease.channel}" export RELEASE_HEAD="${nextRelease.gitHead}" export RELEASE_NOTES="${nextRelease.notes}" export RELEASE_TAG="${nextRelease.gitTag}" export RELEASE_TYPE="${nextRelease.type}" EOF
- - '@semantic-release/npm'
- npmPublish: falsetarballDir: dist
- - '@semantic-release/git'
- assets:
- CHANGELOG.md
- package.json
- package-lock.json
- - '@semantic-release/github'
- assets:
- path: dist/*.tgzlabel: distribution files
The text was updated successfully, but these errors were encountered:
So the issue seems to be that items in the "current directory" can't be globbed with a pattern of **.
Going the NOT pattern in this example...
Have you tried adding a path separator at the end? e.g. **/
If that doesn't work, then maybe try **/*. This one works as expected in Powershell, though Node Glob might work differently.
My issue seems very similar to this closed issue - #193 - but since that is closed and a couple of years old I figured it might not be relevant.
Even with debug logging turned on, the logs go silent after this log message - https://github.com/semantic-release/github/blob/master/lib/publish.js#L34 . The draft release is created correctly, we just never seem to make it as far as https://github.com/semantic-release/github/blob/master/lib/publish.js#L56 as we never get any additional debug logging. So it seems perhaps there is an issue with the glob step.
The complete log entries from release that are relevant to github plugin are shown below.
Our
.releaserc.yml
file is as followsNote I am able to make releases by making npm plugin generate a tarball and explicitly using that tarball in
assets
config. So a config like this works.The text was updated successfully, but these errors were encountered: