-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove EOL node versions in CICD (#185)
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 }} | ||
|
@@ -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" | ||
|