diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0df8b11..05ab98e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,29 +2,21 @@ name: CI on: [ push, pull_request ] jobs: build: + continue-on-error: true runs-on: ubuntu-latest strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [10, 12, 14, 16, 20] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v5 - name: Use Node.js ${{matrix.node-version}} - uses: actions/setup-node@v1 + uses: actions/setup-node@v5 with: node-version: ${{matrix.node-version}} - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{matrix.node-version}}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node-${{matrix.node-version}}- - ${{ runner.OS }}-node- - ${{ runner.OS }}- + cache: 'npm' - name: Install dependencies run: npm ci - name: Build diff --git a/.github/workflows/PUBLISH.yml b/.github/workflows/PUBLISH.yml deleted file mode 100644 index 2448fd8..0000000 --- a/.github/workflows/PUBLISH.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: PUBLISH -on: - push: - tags: - - 'v*' - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 14 - - name: Publish - run: | - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - npm publish --ignore-scripts - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 804a648..95eec35 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "all": "run-s lint test", "lint": "eslint .", "test": "mocha --exit -r test/expect test/spec/*.js", - "release": "np --no-publish" + "release": "np" }, "authors": [ "Nico Rehwaldt ",