Skip to content

Change release to trigger on version change #16

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

Merged
merged 5 commits into from
Apr 25, 2023
Merged

Conversation

idastambuk
Copy link
Contributor

Changing the release step to trigger on every commit to main with a version change.

Basically copied the steps from grafana/aws-sdk-react, and replaced the github release step from the old publish as a separate job. Lmk if it looks good

if: steps.version_check.outputs.changed == 'true'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't actually see a GITHUB_TOKEN in this repo's settings. do we need to add that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GITHUB_TOKEN is a temporary secret that is created at runtime and has certain limited permissions, so we don't need to explicitly add it. I think this should be ok without giving it any specific permissions for this action🤞🏻

@idastambuk idastambuk merged commit 25475e2 into main Apr 25, 2023
@idastambuk idastambuk deleted the release-update branch April 25, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants