diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25d3996..6b9a366 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,4 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://github.com/marketplace/actions/setup-node-js-environment +# @see: https://github.com/marketplace/actions/setup-node-js-environment name: CI @@ -17,14 +16,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 20.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + node: [ 20 ] + name: Node ${{ matrix.node }} steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - # cache: 'npm' - - run: npm install --ignore-scripts - - run: npm run all + - uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - run: npm version + - run: npm install --ignore-scripts + - run: npm run all diff --git a/package.json b/package.json index 1d7d605..5b066c2 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,6 @@ "example": "npm run build:example && npm run start:example", "changelog": "conv-changelog -i CHANGELOG.md -o", "lint": "eslint --ext .js .", - "prepublishOnly": "npm run all", "readme": "markedpp --github -i README.md -o README.md", "start:example": "DEBUG=* node examples/app/server.cjs", "test": "mocha",