Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove EOL node versions in CICD #185

Merged
merged 3 commits into from
May 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading