Skip to content

Commit

Permalink
chore: remove EOL node versions in CICD (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-luong authored May 1, 2024
1 parent 5011ba3 commit 848b0d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18
- name: npm config get cache
id: npm-cache-dir
run: echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-14-${{ hashFiles('**/package.json') }}
restore-keys: ${{ runner.os }}-node-14-
key: ${{ runner.os }}-node-18-${{ hashFiles('**/package.json') }}
restore-keys: ${{ runner.os }}-node-18-
- run: npm install
- run: npm run lint

Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 16, 18, 20]
node-version: [18, 20]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -49,23 +49,23 @@ jobs:
- run: npm run tap

release:
if: github.ref == 'refs/heads/master' # only run on master
if: github.ref == 'refs/heads/main' # only run on main
needs: test
name: Release snyk-to-html
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18
- name: npm config get cache
id: npm-cache-dir
run: echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-14-${{ hashFiles('**/package.json') }}
restore-keys: ${{ runner.os }}-node-14-
key: ${{ runner.os }}-node-18-${{ hashFiles('**/package.json') }}
restore-keys: ${{ runner.os }}-node-18-
- run: npm install
- run: npm i -g --save-exact [email protected] @semantic-release/[email protected]
- run: npx -p node@v18-lts -c "semantic-release"
Expand Down

0 comments on commit 848b0d3

Please sign in to comment.