Skip to content

Commit e4b6525

Browse files
authored
chore: add release PR flow (#54)
1 parent d14e1d2 commit e4b6525

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

.github/workflows/release-please.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: release-please
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: GoogleCloudPlatform/release-please-action@v2
11+
with:
12+
token: ${{ secrets.GITHUB_TOKEN }}
13+
release-type: node
14+
package-name: '@netlify/eslint-config-node'

CONTRIBUTING.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ After submitting the pull request, please make sure the Continuous Integration c
3838

3939
## Releasing
4040

41-
```bash
42-
npm version [major|minor|patch]
43-
```
44-
45-
Then:
46-
47-
```
48-
npm publish [--tag=TAG]
49-
```
41+
1. Merge the release PR
42+
2. Switch to the default branch `git checkout master`
43+
3. Pull latest changes `git pull`
44+
4. Publish the package `npm publish`

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@
2525
"test:dev": "run-s test:dev:*",
2626
"test:ci": "run-s test:ci:*",
2727
"test:dev:ava": "ava",
28-
"test:ci:ava": "nyc -r lcovonly -r text -r json ava",
29-
"publish": "git push --follow-tags"
28+
"test:ci:ava": "nyc -r lcovonly -r text -r json ava"
3029
},
3130
"scriptsArgs": {
3231
"eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{bin,.github}/**/*.{js,md,html}\" \".*.js\"",
33-
"prettier": "--ignore-path .gitignore --loglevel=warn \"{bin,.github}/**/*.{js,md,yml,json,html}\" \"*.{js,yml,json,html}\" \"!**/package-lock.json\" \"!package-lock.json\""
32+
"prettier": "--ignore-path .gitignore --loglevel=warn \"{bin,.github}/**/*.{js,md,yml,json,html}\" \"*.{js,yml,json,html}\" \"!**/package-lock.json\" \"!CHANGELOG.md\""
3433
},
3534
"husky": {
3635
"hooks": {

0 commit comments

Comments
 (0)