Skip to content

Commit

Permalink
chore(ci): specify only majors for GH Actions (#904)
Browse files Browse the repository at this point in the history
This will create less PRs to update their versions
  • Loading branch information
MichaelDeBoey committed Sep 21, 2021
1 parent aa249a2 commit 7c23a69
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/nodejs.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2.4.0
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
Expand All @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
Expand All @@ -74,7 +74,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.4.0
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
Expand All @@ -87,7 +87,7 @@ jobs:
run: yarn test --coverage ${{ matrix.eslint-version >= 6 }}
env:
CI: true
- uses: codecov/codecov-action@v2.1.0
- uses: codecov/codecov-action@v2
if: ${{ matrix.eslint-version >= 6 }}
test-os:
name: Test on ${{ matrix.os }} using Node.js LTS
Expand All @@ -100,7 +100,7 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
Expand All @@ -110,14 +110,16 @@ jobs:
run: yarn test --coverage
env:
CI: true
- uses: codecov/codecov-action@v2
if: ${{ matrix.eslint-version >= 6 }}

docs:
if: ${{ github.event_name == 'pull_request' }}
needs: prepare-yarn-cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
Expand All @@ -140,7 +142,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
Expand Down

0 comments on commit 7c23a69

Please sign in to comment.