Specify exact version for GH actions to avoid accidental breakage (#69)
To avoid accidental breakage when an action is implicitly upgraded, let’s fixate the action versions and let dependabot do it’s thing. Therefore when an action upgrade breaks the build it becomes visible in the dependabot PR.
This commit is contained in:
parent
78d45e770e
commit
c4ce1531cc
1 changed files with 7 additions and 7 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -20,16 +20,16 @@ jobs:
|
|||
name: nodejs ${{ matrix.node-version }} (${{ matrix.lint && 'lint → ' || '' }}${{ matrix.tests && 'test → ' || '' }}build)
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v3.2.0
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v3.5.0
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Cache node modules
|
||||
id: cache-npm
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v3.0.11
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
|
@ -38,7 +38,7 @@ jobs:
|
|||
|
||||
- name: Cache eslint
|
||||
id: cache-eslint
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v3.0.11
|
||||
env:
|
||||
cache-name: cache-eslint
|
||||
with:
|
||||
|
@ -47,7 +47,7 @@ jobs:
|
|||
|
||||
- name: Cache TypeScript
|
||||
id: cache-typescript
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v3.0.11
|
||||
env:
|
||||
cache-name: cache-typescript
|
||||
with:
|
||||
|
@ -56,7 +56,7 @@ jobs:
|
|||
|
||||
- name: Cache prettier
|
||||
id: cache-prettier
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v3.0.11
|
||||
env:
|
||||
cache-name: cache-prettier
|
||||
with:
|
||||
|
@ -76,7 +76,7 @@ jobs:
|
|||
if: ${{ matrix.tests }}
|
||||
|
||||
- name: Upload code coverage
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v3.1.1
|
||||
with:
|
||||
name: code-coverage
|
||||
path: coverage/lcov.info
|
||||
|
|
Loading…
Reference in a new issue