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

automate release engineering #55

Open
nyuichi opened this issue Mar 24, 2020 · 4 comments
Open

automate release engineering #55

nyuichi opened this issue Mar 24, 2020 · 4 comments

Comments

@nyuichi
Copy link
Owner

nyuichi commented Mar 24, 2020

No description provided.

@zeptometer
Copy link
Collaborator

I'd like following points to be included in this issue

  • Provide documents of versioning scheme
  • Provide instructions of how to release a new version

@nyuichi
Copy link
Owner Author

nyuichi commented Mar 27, 2020

I leave some comments here for future documenting:

Provide documents of versioning scheme

We are currently (relatively strictly) following the semver.
OTOH we have not (yet) adopted keep a changelog.

Provide instructions of how to release a new version

My personal workflow is as follows (taken by the history command):

node scripts/release.js 1.2.1
(...get approval from other contributors and merge it at github...)
git pull
git tag -a 1.2.1
git push --tags
opam publish --repo na4zagin3/satyrographos-repo

@nyuichi
Copy link
Owner Author

nyuichi commented Mar 27, 2020

After some investigation I found that opam-publish retrieves a github access token from ~/.opam/plugins/opam-publish/na4zagin3%satyrographos-repo.token whose content is usual 40-byte ascii token of github.
On every run of a github action an access token is stored in an environment variable called GITHUB_TOKEN, so perhaps saving the token to ~/.opam/plugins/opam-publish/na4zagin3%satyrographos-repo.token in github actions lets opam-publish work in actions.

@nyuichi
Copy link
Owner Author

nyuichi commented May 7, 2020

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

No branches or pull requests

2 participants