Skip to content

Commit fc294ab

Browse files
committed
Workflow tweaks
1 parent c5b6bff commit fc294ab

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.github/workflows/npm-bump.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,23 @@ on:
99
required: true
1010

1111
env:
12-
node_version: 16
12+
node_version: lts/*
13+
FORCE_COLOR: 2
14+
15+
concurrency: # prevent concurrent releases
16+
group: npm-bump
17+
cancel-in-progress: true
1318

1419
jobs:
1520
version_and_release:
1621
runs-on: ubuntu-latest
1722
steps:
18-
- uses: actions/checkout@v2.4.0
23+
- uses: actions/checkout@v2
1924
with:
2025
# fetch full history so things like auto-changelog work properly
2126
fetch-depth: 0
2227
- name: Use Node.js ${{ env.node_version }}
23-
uses: actions/setup-node@v2.5.1
28+
uses: actions/setup-node@v2
2429
with:
2530
node-version: ${{ env.node_version }}
2631
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED

.github/workflows/test.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ name: tests
22

33
on: [pull_request, push]
44

5+
env:
6+
FORCE_COLOR: 2
7+
58
jobs:
69
test:
710
runs-on: ${{ matrix.os }}
811

912
strategy:
1013
matrix:
1114
os: [ubuntu-latest]
12-
node: [16]
15+
node: [lts/*]
1316

1417
steps:
15-
- uses: actions/checkout@v2.4.0
18+
- uses: actions/checkout@v2
1619
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v2.5.1
20+
uses: actions/setup-node@v2
1821
with:
1922
node-version: ${{ matrix.node-version }}
2023
- run: npm i
@@ -23,8 +26,11 @@ jobs:
2326
automerge:
2427
needs: test
2528
runs-on: ubuntu-latest
29+
permissions:
30+
pull-requests: write
31+
contents: write
2632
steps:
27-
- uses: fastify/github-action-merge-dependabot@v2.7.1
33+
- uses: fastify/github-action-merge-dependabot@v3.0.2
2834
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot/github_actions') }}
2935
with:
3036
github-token: ${{secrets.github_token}}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ coverage
44
.vscode
55
build
66
package-lock.json
7+
sandbox.js

0 commit comments

Comments
 (0)