diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 560d2b8..a6f2a19 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -29,13 +29,13 @@ jobs: version: 9 run_install: false + - name: Install dependencies + run: pnpm i --frozen-lockfile + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' - - name: Install dependencies - run: pnpm i --frozen-lockfile - - run: pnpm test diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a1e6da3..fb5c87b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -12,17 +12,27 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x] + node-version: [20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + run_install: false + + - name: Install dependencies + run: pnpm i --frozen-lockfile + - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: yarn - - run: yarn --frozen-lockfile - - run: yarn run test --watch=false --progress=false --single-run --browsers=ChromiumHeadless + cache: pnpm + + - run: pnpm test publish-npm: needs: build @@ -31,10 +41,10 @@ jobs: contents: read id-token: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm i - run: npm ci