diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e6ca20..1d68aa2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,27 +1,27 @@ name: Build on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - workflow_dispatch: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: jobs: - build: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x, 18.x, 20.x] + strategy: + matrix: + node-version: [18.x, 20.x, 21.x] - steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm run build-release - - run: npm run lint - - run: npm run test \ No newline at end of file + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build-release + - run: npm run lint + - run: npm run test