Skip to content
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

Add GHA to publish on release creation #62

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

makrsmark
Copy link
Collaborator

Workflow to release would be:

  1. run git checkout master
  2. run yarn version <major/minor/patch>
  3. run git push && git push --tags
  4. Create release from pushed tag on GitHub
  5. let the workflow publish to NPM registry

- run: yarn build
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kevinelliott for this to work you'll need to add a NPM automation token as either an org or repo secret. I can change the name if you don't want to add it as something other than NPM_TOKEN

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, let me get that setup!

@kevinelliott kevinelliott merged commit 1206fe5 into airframesio:master Jun 23, 2024
3 checks passed
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.

None yet

2 participants