From aa80174e516f4a667e050995ad0b499f9d6b7d9e Mon Sep 17 00:00:00 2001 From: erezrokah Date: Sun, 20 Dec 2020 17:21:35 +0100 Subject: [PATCH] chore: add release PR flow --- .github/workflows/release-please.yml | 14 ++++++++++++++ CONTRIBUTING.md | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 00000000..e97407e3 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,14 @@ +name: release-please +on: + push: + branches: + - master +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: GoogleCloudPlatform/release-please-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: node + package-name: '@netlify/plugin-lighthouse' diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index efa4ff4b..7bd2db64 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,7 @@ # Contributing +## Setup + First fork this project ```bash @@ -16,3 +18,10 @@ git push origin my-fix ``` Lastly, open a pull request on Github. + +## Releasing + +1. Merge the release PR +2. Switch to the default branch `git checkout master` +3. Pull latest changes `git pull` +4. Publish the package `npm publish`