Skip to content

Commit 459450d

Browse files
committed
ci: replace auto-approve dependabot workflow with auto-merge
1 parent 1eb3100 commit 459450d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Auto-merge dependabot PRs
2+
3+
on:
4+
pull_request
5+
6+
jobs:
7+
auto-merge:
8+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: ahmadnassri/[email protected]
13+
with:
14+
target: minor
15+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-on-push-to-mainline.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,24 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v2
17+
1718
- name: Use Node.js ${{ matrix.node-version }}
1819
uses: actions/setup-node@v1
1920
with:
2021
node-version: ${{ matrix.node-version }}
22+
23+
- name: Audit
24+
run: npm audit --audit-level critical
25+
2126
- name: Install
2227
run: npm ci
28+
2329
- name: Test
2430
run: npm test
31+
2532
- name: Lint
2633
run: npm run lint
34+
2735
- name: Release
2836
if: github.event_name == 'push' && github.ref == 'refs/heads/mainline' && matrix.node-version == '12.x'
2937
run: npm run release

0 commit comments

Comments
 (0)