Skip to content

Commit 9428303

Browse files
committed
chore: add release please
1 parent e030f07 commit 9428303

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

.github/workflows/release-please.yml

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

RELEASE.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Releasing
2+
3+
1. Merge the release PR
4+
2. Run `npm publish`

commitlint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] }

package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
"cypress:local": "env CYPRESS_DEPLOY=local cypress run --project ./src --config-file false --config video=false",
2020
"cypress:netlify": "env CYPRESS_DEPLOY=netlify cypress run --project ./src --config-file false --config video=false",
2121
"cypress:local:testonly": "env CYPRESS_SKIP_DEPLOY=true npm run cypress:local",
22-
"cypress:netlify:testonly": "env CYPRESS_SKIP_DEPLOY=true npm run cypress:netlify"
22+
"cypress:netlify:testonly": "env CYPRESS_SKIP_DEPLOY=true npm run cypress:netlify",
23+
"prepublishOnly": "run-s prepublishOnly:*",
24+
"prepublishOnly:checkout": "git checkout main",
25+
"prepublishOnly:pull": "git pull",
26+
"prepublishOnly:install": "npm ci",
27+
"prepublishOnly:test": "npm test"
2328
},
2429
"repository": {
2530
"type": "git",
@@ -70,6 +75,7 @@
7075
},
7176
"husky": {
7277
"hooks": {
78+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
7379
"pre-commit": "prettier --check ."
7480
}
7581
},

0 commit comments

Comments
 (0)