[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

chore: update publish workflow

Vladimir Sheremet (Jun 1, 2026, 10:22 AM +0200) 80576cbf 1b114e8e

+15 -12
+15 -12
.github/workflows/publish.yml
··· 5 5 tags: 6 6 - 'v*' 7 7 8 - permissions: 9 - contents: write 10 - id-token: write 8 + permissions: {} 11 9 12 10 env: 13 11 VITEST_GENERATE_UI_TOKEN: 'true' ··· 15 13 16 14 jobs: 17 15 publish: 16 + # only run on main, don't trigger in forks 18 17 if: github.repository == 'vitest-dev/vitest' 18 + name: Publish Vitest 19 19 runs-on: ubuntu-latest 20 + permissions: 21 + contents: write # trusted publishing and changelog requirement 22 + id-token: write # trusted publishing requirement 20 23 environment: Release 21 24 steps: 22 - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 25 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 23 26 with: 24 27 fetch-depth: 0 28 + persist-credentials: false 25 29 26 30 - name: Install pnpm 27 - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 31 + uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 28 32 29 - - name: Set node version to 20 30 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 33 + - name: Set node version to 24 34 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 31 35 with: 32 - node-version: 20 36 + node-version: 24 33 37 registry-url: https://registry.npmjs.org/ 34 - cache: pnpm 38 + # disable cache to avoid cache poisoning 39 + package-manager-cache: false 35 40 36 41 - name: Install 37 42 run: pnpm install --frozen-lockfile --prefer-offline ··· 42 47 run: pnpm build 43 48 44 49 - name: Publish to npm 45 - run: pnpm run publish-ci ${{ github.ref_name }} 46 - env: 47 - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 50 + run: npm i -g npm@^11.5.2 && pnpm run publish-ci "${GITHUB_REF_NAME}" 48 51 49 52 - name: Generate Changelog 50 53 run: npx changelogithub