diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7d79575..1d701b8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,15 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: - node-version: 20 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 20 + node-version: 22 cache: "pnpm" - cache-dependency-path: "**/pnpm-lock.yaml" - run: pnpm install --frozen-lockfile --prefer-offline - uses: actions/cache@v4 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 576551cb..fdc87165 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,16 +15,12 @@ jobs: environment: Release steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: - node-version: 20 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 20 + node-version: 22 registry-url: "https://registry.npmjs.org" cache: "pnpm" - cache-dependency-path: "**/pnpm-lock.yaml" - run: pnpm install --frozen-lockfile --prefer-offline - run: pnpm build - run: pnpm tnode scripts/publish.ts ${{ github.ref_name }} diff --git a/README.md b/README.md index faa973ed..1a81f3d0 100644 --- a/README.md +++ b/README.md @@ -114,9 +114,3 @@ For React refresh to work correctly, your file should only export React componen If an incompatible change in exports is found, the module will be invalidated and HMR will propagate. To make it easier to export simple constants alongside your component, the module is only invalidated when their value changes. You can catch mistakes and get more detailed warning with this [eslint rule](https://github.com/ArnaudBarre/eslint-plugin-react-refresh). - -## Migrating from `vite-plugin-swc-react-refresh` - -The documentation for the previous version of the plugin is available in the [v2 branch](https://github.com/vitejs/vite-plugin-react-swc/tree/v2) - -To migrate, see this [changelog](https://github.com/vitejs/vite-plugin-react-swc/releases/tag/v3.0.0-beta.0)