Skip to content

Commit

Permalink
Bump node.js version used in CI
Browse files Browse the repository at this point in the history
Current LTS release is 20.x, and current (1.85) VSCode uses 18.x.
  • Loading branch information
jorgenpt committed Jan 12, 2024
1 parent 538117b commit 9de171e
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,42 @@
name: Build

on:
push:
on:
push:
branches:
- master
pull_request:
branches:
pull_request:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true

publish:
needs: build
runs-on: ubuntu-latest
if: success() && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 18.x
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
Expand Down

0 comments on commit 9de171e

Please sign in to comment.