From 0fa69e79d0b7bd5c9b5e8abaa8ecc984c6c7e2d9 Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 27 Nov 2021 22:13:26 -0800 Subject: [PATCH] update workflows to use npm install npm npm ci --- .github/workflows/lint.yml | 4 ++-- .github/workflows/node.js.yml | 4 ++-- .github/workflows/npm-publish.yml | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 577e13f7..84136771 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,6 +16,6 @@ jobs: - name: lint uses: actions/setup-node@v2 with: - node-version: '15.x' - - run: npm ci + node-version: '16.x' + - run: npm install - run: npm run lint diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 1caec1e6..ed32b7ce 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -14,7 +14,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [12.x, 14.x, 16.x, 17.x] + node-version: [12.x, 16.x, 17.x] os: [ubuntu-latest, windows-latest] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ @@ -24,6 +24,6 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - run: npm ci + - run: npm install - run: npm run build --if-present - run: npm test diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 0c071c64..b7e0a6e8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -14,8 +14,8 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 - - run: npm ci + node-version: 16 + - run: npm install - run: npm test publish-npm: @@ -25,9 +25,9 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm ci + - run: npm install - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} @@ -39,7 +39,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 16 registry-url: https://npm.pkg.github.com/ - name: Insert repository owner as scope into package name run: | @@ -54,7 +54,7 @@ jobs: process.exit(1); }); EOF - - run: npm ci + - run: npm install - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}