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

Set up automatic semantic release #118

Open
masakudamatsu opened this issue Feb 3, 2021 · 1 comment
Open

Set up automatic semantic release #118

masakudamatsu opened this issue Feb 3, 2021 · 1 comment
Labels
question Further information is requested
Milestone

Comments

@masakudamatsu
Copy link
Owner

masakudamatsu commented Feb 3, 2021

5 Feb 2021: For the time being, we will manually manage the semantic versioning by following GitHub help:
https://docs.github.com/en/github/administering-a-repository/managing-releases-in-a-repository

For work-in-progress code, see the stash prefixed with the issue number

Sources:

Kent C Dodds: https://egghead.io/lessons/javascript-automating-releases-with-semantic-release

Installation

Configuration

npx semantic-release-cli setup

and follow the wizard. For detail, see

This will create .travis.yml.

As of Feb 2021, the semantic-release-cli does not work with GitHub. See semantic-release/cli#345

Edit package.json

Set

"version": "0.0.0-semantically-released"
  • when I run npm install, npm will give me a warning if my package doesn't have a version (Kent C Dodds)

Edit .travis.yml

Add

script:
  - npm run test

How semantic-release works with Git branches:

https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/distribution-channels.md

@masakudamatsu masakudamatsu added this to the Deployment milestone Feb 3, 2021
@masakudamatsu
Copy link
Owner Author

We cannot implement this feature at this moment.

@masakudamatsu masakudamatsu added the question Further information is requested label Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant