diff --git a/.github/workflows/lint-test-publish.yml b/.github/workflows/lint-test-publish.yml index 66433b7..97dcd92 100644 --- a/.github/workflows/lint-test-publish.yml +++ b/.github/workflows/lint-test-publish.yml @@ -13,16 +13,19 @@ jobs: run: shell: bash steps: - - name: Check out files - uses: actions/checkout@v2 - - name: Use Node.js 14.x - uses: actions/setup-node@v1 - with: - node-version: 14.x - - name: Install package dependencies - run: npm ci - - name: Lint code - run: npm run lint --if-present + - name: Check out files + uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "16" + cache: "npm" + cache-dependency-path: package-lock.json + - name: Update to latest NPM version + run: npm i -g npm + - name: Install package dependencies + run: npm ci + - name: Lint code + run: npm run lint --if-present test: runs-on: ubuntu-latest @@ -30,16 +33,19 @@ jobs: run: shell: bash steps: - - name: Check out files - uses: actions/checkout@v2 - - name: Use Node.js 14.x - uses: actions/setup-node@v1 - with: - node-version: 14.x - - name: Install package dependencies - run: npm ci - - name: Test code - run: npm run test --if-present + - name: Check out files + uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "16" + cache: "npm" + cache-dependency-path: package-lock.json + - name: Update to latest NPM version + run: npm i -g npm + - name: Install package dependencies + run: npm ci + - name: Test code + run: npm run test --if-present publish: runs-on: ubuntu-latest @@ -50,15 +56,18 @@ jobs: shell: bash steps: - name: Check out files - uses: actions/checkout@v2 - - name: Use Node.js 14.x - uses: actions/setup-node@v1 + uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: "16" + cache: "npm" + cache-dependency-path: package-lock.json + - name: Update to latest NPM version + run: npm i -g npm - name: Install package dependencies run: npm ci - name: Semantic Release run: npx semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}