diff --git a/.github/workflows/shipjs-trigger.yml b/.github/workflows/shipjs-trigger.yml index a8d0d9a06..12aa716a4 100644 --- a/.github/workflows/shipjs-trigger.yml +++ b/.github/workflows/shipjs-trigger.yml @@ -4,7 +4,7 @@ on: types: - closed jobs: - build: + release: name: Release runs-on: ubuntu-latest if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v') @@ -19,6 +19,7 @@ jobs: with: node-version: 24 registry-url: "https://registry.npmjs.org" + cache: "pnpm" - name: Setup pnpm and install dependencies uses: pnpm/action-setup@v4 with: @@ -27,7 +28,7 @@ jobs: args: [--frozen-lockfile, --strict-peer-dependencies] - run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" + git config --global user.name "github-actions[bot]" - run: npx shipjs trigger env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d4d18c6ab..323d137d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,30 +1,28 @@ -name: "@prefabs.tech/react Test" +name: "Test suite" -on: push +on: + push jobs: test: runs-on: ubuntu-latest strategy: matrix: - node-version: [18, 20, 22, 24] + node-version: [20, 22, 24] steps: - - uses: actions/checkout@v4 - name: Use node ${{ matrix.node-version }} - - - uses: actions/setup-node@v4 + - name: Checkout + uses: actions/checkout@v4 + - name: Use node ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Setup pnpm and install dependencies uses: pnpm/action-setup@v4 with: run_install: | - recursive: true args: [--frozen-lockfile, --strict-peer-dependencies] - - name: Build packages run: pnpm build - - name: Run tests run: pnpm test