diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index c755650..300d301 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -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,7 +49,7 @@ 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 @@ -57,15 +57,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 i -g --save-exact semantic-release@21.0.2 @semantic-release/exec@6.0.3 - run: npx -p node@v18-lts -c "semantic-release"