-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action is ignoring (default) branches #24
Comments
The action runs by default on the - name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
with:
branch: alpha # set branch property to alpha
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
@cycjimmy thank you for the quick reply. Are there any plans to support the branches feature of semantic-release v16 ? |
Of course, the feature for branches looks good. I will support it as possible after my work. |
Amazing! Thank you. |
🎉 This issue has been resolved in version 2.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks for your issue. And now semantic-release-action@v2.3.0 supports branches. @jakobrosenberg |
Thanks for your efforts @cycjimmy . I just tried the update, but I'm still getting the error from before. This is my Github action: # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
['push']
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cycjimmy/semantic-release-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: |
echo $RELEASE_VERSION
echo $RELEASE_MAJOR
echo $RELEASE_MINOR
echo $RELEASE_PATCH |
cycjimmy/semantic-release-action does not generate these environment variables: You can use outputs for the same purpose: steps:
- uses: actions/checkout@v2
- uses: cycjimmy/semantic-release-action@v2
id: semantic # Need an `id` for output variables
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo ${{ steps.semantic.outputs.new_release_version }}
echo ${{ steps.semantic.outputs.new_release_major_version }}
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }} |
I removed the run command. However I was still getting this error.
My "release": {
"branches": [
"master",
"next",
"actions",
{"name": "alph", "prerelease": true},
{"name": "beta", "prerelease": true}
]
},
After correcting the typo I'm now getting this error instead. (sorry for veering a little off topic here)
Should the |
Are you working on a private repository or a protected branch? If yes, replace Also, you need to check whether NPM_TOKEN has authentication to publish. See authentication for plugins. |
It's a public repo and there are no protection rules for any of the branches. The NPM_TOKEN was generated by |
I found the issue. While my account was set to |
u r welcome. And thank you for suggestions on this action. |
# [2.4.0](v2.3.3...v2.4.0) (2020-04-30) ### Bug Fixes * rescope ([5b03139](5b03139)) * rescope to 'lundalogik' ([e951df7](e951df7)) ### Features * added ability to use the "extends" settings ([32db8a4](32db8a4)) * **branches:** support branches of semantic-release v16+ ([706c0ef](706c0ef)), closes [cycjimmy#24](https://github.com/lundalogik/semantic-release-action/issues/24) [cycjimmy#25](https://github.com/lundalogik/semantic-release-action/issues/25) * add release notes to output ([a56320d](a56320d))
Describe the bug
If I run the action on an alpha branch I get the following error
It doesn't make any difference whether I use the default branches or specify them manually in
package.json
.The text was updated successfully, but these errors were encountered: