Skip to content

Commit

Permalink
ci(NodeJs): Drop 12
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur authored Sep 22, 2021
1 parent 3acdc75 commit 75eeacb
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: NodeJs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{secrets.NPM_TOKEN }}
NODEJS: 16
YARN_CACHE: "yarn-cache"

on:
push:
Expand All @@ -14,16 +16,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '12', '14', '16' ]
node: [ '14', '16' ]
steps:
- uses: actions/checkout@v2
- name: Set yarn cache
run: yarn config set ${{env.YARN_CACHE}}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-npm
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: '~/.cache/yarn/'
path: ${{env.YARN_CACHE}}
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
Expand All @@ -43,17 +46,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set yarn cache
run: yarn config set ${{env.YARN_CACHE}}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
node-version: ${{env.NODEJS}}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-npm
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: '~/.cache/yarn/'
path: ${{env.YARN_CACHE}}
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install semantic-release dependencies
run: yarn install --frozen-lockfile
Expand All @@ -71,17 +75,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set yarn cache
run: yarn config set ${{env.YARN_CACHE}}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
node-version: ${{env.NODEJS}}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-npm
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: '~/.cache/yarn/'
path: ${{env.YARN_CACHE}}
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install semantic-release dependencies
run: yarn install --frozen-lockfile
Expand Down

0 comments on commit 75eeacb

Please sign in to comment.