-
Notifications
You must be signed in to change notification settings - Fork 88
chore: add release please #110
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
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: release-please | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: GoogleCloudPlatform/release-please-action@v2 | ||
with: | ||
token: ${{ secrets.NODE_PKG_RELEASE_TOKEN }} | ||
release-type: node | ||
package-name: '@netlify/plugin-nextjs' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Contributions | ||
|
||
🎉 Thanks for considering contributing to this project! 🎉 | ||
|
||
These guidelines will help you send a pull request. | ||
|
||
If you're submitting an issue instead, please skip this document. | ||
|
||
If your pull request is related to a typo or the documentation being unclear, please click on the relevant page's `Edit` | ||
button (pencil icon) and directly suggest a correction instead. | ||
|
||
This project was made with ❤️. The simplest way to give back is by starring and sharing it online. | ||
|
||
Everyone is welcome regardless of personal background. We enforce a [Code of conduct](CODE_OF_CONDUCT.md) in order to | ||
promote a positive and inclusive environment. | ||
|
||
## Development process | ||
|
||
First fork and clone the repository. If you're not sure how to do this, please watch | ||
[these videos](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github). | ||
|
||
Run: | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
Make sure everything is correctly setup with: | ||
|
||
```bash | ||
npm test | ||
``` | ||
|
||
## How to write commit messages | ||
|
||
We use [Conventional Commit messages](https://www.conventionalcommits.org/) to automate version management. | ||
|
||
Most common commit message prefixes are: | ||
|
||
* `fix:` which represents bug fixes, and generate a patch release. | ||
* `feat:` which represents a new feature, and generate a minor release. | ||
* `feat!:`, `fix!:` or `refactor!:` and generate a major release. | ||
|
||
## Releasing | ||
|
||
1. Merge the release PR | ||
2. Run `npm publish` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = { extends: ['@commitlint/config-conventional'] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.