diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 009eadc..9741cf6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -5,15 +5,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v1 - with: - node-version: 16.x - - name: npm install, build, and test - run: | - npm install - npm run build - npm test - env: - CI: true + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + cache: npm + - run: npm ci + - run: npm test + env: + CI: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c1b229d..8e219eb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 registry-url: https://registry.npmjs.org/ cache: npm - run: npm ci