diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index d45754e..e9e19bb 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -6,16 +6,11 @@ jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [19.x, 20.x] - steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 - run: npm ci - run: npm run build - run: npm test diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index 226133e..69712ba 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -9,27 +9,24 @@ jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [19.x, 20.x] - steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 - run: npm ci - run: npm run build - run: npm test release: runs-on: ubuntu-latest - needs: test steps: - - uses: actions/checkout@v1 - - name: Make stable release to npm - uses: epeli/npm-release@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - type: stable - token: ${{ secrets.NPM_TOKEN }} + node-version: 20 + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/vercel-deploy.yml b/.github/workflows/vercel-deploy.yml index 73b6a73..dc408df 100644 --- a/.github/workflows/vercel-deploy.yml +++ b/.github/workflows/vercel-deploy.yml @@ -9,16 +9,12 @@ jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [19.x, 20.x] steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 - run: npm ci - run: npm run build - run: npm test @@ -26,15 +22,11 @@ jobs: deploy: runs-on: ubuntu-latest needs: test - strategy: - matrix: - node-version: [20.x] steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 - name: build run: | npm ci