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

publish to npm via github actions #45

Closed
sethvincent opened this issue Jun 22, 2023 · 11 comments · Fixed by #49
Closed

publish to npm via github actions #45

sethvincent opened this issue Jun 22, 2023 · 11 comments · Fixed by #49
Assignees

Comments

@sethvincent
Copy link
Contributor

Add a github actions workflow that builds the project and publishes to npm.

The workflow could run on push to main. Alternately it could run on making a release which I prefer as it helps to avoid accidental publishing.

@sethvincent
Copy link
Contributor Author

sethvincent commented Jun 22, 2023

I can set this up, just need a token for publishing to npm. I'm guessing this package belongs to the mapeo org on npm, or should. The token could be added as a secret to this repo or the org.

@gmaclennan
Copy link
Member

I'm planning to use https://github.com/nearform-actions/optic-release-automation-action to do this. It seems like it gives the most control over when releases happen, vs. https://github.com/semantic-release/semantic-release, which is popular, but I don't think we want completely automated publishing for this repo, for the accidental publishing reason that Seth mentions.

@github-actions
Copy link

🎉 This issue has been resolved in version 3.0.0-next.0 🎉

The release is available on:

Your optic bot 📦🚀

@github-actions
Copy link

🎉 This issue has been resolved in version 3.0.0-next.1 🎉

The release is available on:

Your optic bot 📦🚀

@github-actions
Copy link

🎉 This issue has been resolved in version 3.0.0-next.2 🎉

The release is available on:

Your optic bot 📦🚀

@gmaclennan
Copy link
Member

This is now complete and documented here: https://github.com/digidem/mapeo-schema/blob/master/CONTRIBUTING.md

@gmaclennan
Copy link
Member

You can test using this package from npm via npm install @mapeo/schema@latest (note the name change) @sethvincent @tomasciccola

@github-actions
Copy link

🎉 This issue has been resolved in version 3.0.0-next.3 🎉

The release is available on:

Your optic bot 📦🚀

@github-actions
Copy link

🎉 This issue has been resolved in version 3.0.0-next.4 🎉

The release is available on:

Your optic bot 📦🚀

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

🎉 This issue has been resolved in version 3.0.0-next.5 🎉

The release is available on:

Your optic bot 📦🚀

@github-actions
Copy link

🎉 This issue has been resolved in version 3.0.0-next.6 🎉

The release is available on:

Your optic bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants