Skip to content

Commit c001f06

Browse files
committed
Merge branch 'master' into fix/babel-config-lookup
2 parents 6993931 + 8673c42 commit c001f06

File tree

5 files changed

+430
-1602
lines changed

5 files changed

+430
-1602
lines changed

.github/workflows/labeler.yml

+14-18
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,20 @@ jobs:
77
label-pr:
88
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
pr:
13+
[
14+
{ prefix: 'fix', type: 'bug' },
15+
{ prefix: 'chore', type: 'chore' },
16+
{ prefix: 'test', type: 'chore' },
17+
{ prefix: 'ci', type: 'chore' },
18+
{ prefix: 'feat', type: 'feature' },
19+
{ prefix: 'security', type: 'security' },
20+
]
1021
steps:
11-
- uses: erezrokah/[email protected]
12-
if: startsWith(github.event.pull_request.title, 'fix')
22+
- uses: netlify/[email protected]
23+
if: startsWith(github.event.pull_request.title, matrix.pr.prefix)
1324
with:
1425
token: '${{ secrets.GITHUB_TOKEN }}'
15-
label: 'type: bug'
16-
- uses: erezrokah/[email protected]
17-
if: startsWith(github.event.pull_request.title, 'chore') || startsWith(github.event.pull_request.title, 'ci')
18-
with:
19-
token: '${{ secrets.GITHUB_TOKEN }}'
20-
label: 'type: chore'
21-
- uses: erezrokah/[email protected]
22-
if: startsWith(github.event.pull_request.title, 'feat')
23-
with:
24-
token: '${{ secrets.GITHUB_TOKEN }}'
25-
label: 'type: feature'
26-
- uses: erezrokah/[email protected]
27-
if: startsWith(github.event.pull_request.title, 'security')
28-
with:
29-
token: '${{ secrets.GITHUB_TOKEN }}'
30-
label: 'type: security'
26+
label: 'type: ${{ matrix.pr.type }}'

.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+
- 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-lambda'

CONTRIBUTING.md

+4-9
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ After submitting the pull request, please make sure the Continuous Integration c
4343

4444
## Releasing
4545

46-
```bash
47-
npm version [major|minor|patch]
48-
```
49-
50-
Then:
51-
52-
```bash
53-
npm publish
54-
```
46+
1. Merge the release PR
47+
2. Switch to the default branch `git checkout master`
48+
3. Pull latest changes `git pull`
49+
4. Publish the package `npm publish`

0 commit comments

Comments
 (0)