diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 085f25ff..0ee7ec1a 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -19,7 +19,7 @@ } ], "ignoreDeps": [ - "webpack-cli", - "node" + "node", + "typescript" ] } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9b1ed33..db82226c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,22 +4,31 @@ on: push: branches: - main + - 'v*' pull_request: branches: - main + - 'v*' jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4.0.0 + + - name: Setup node + uses: actions/setup-node@v4 with: node-version: lts/* - - run: corepack enable - - run: npm i -g @antfu/ni - - run: nci - - run: nr lint + cache: pnpm + + - run: pnpm install + - run: pnpm run lint + - run: pnpm run typecheck ci: runs-on: ${{ matrix.os }} @@ -27,34 +36,27 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node: [16, 18, 20, 22] + node: [18, 20, 22] fail-fast: false steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4.0.0 + - name: Set node version to ${{ matrix.node }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - run: corepack enable + cache: pnpm - name: Install - run: pnpm i + run: pnpm install - name: Build run: pnpm run build - name: Test run: pnpm run test - - - name: Install Webpack 4 - run: pnpm i webpack@4 - if: ${{ matrix.node == 16 }} - env: - IS_WEBPACK_4: 'true' - - - name: Test with Webpack 4 - run: pnpm run test - if: ${{ matrix.node == 16 }} - env: - IS_WEBPACK_4: 'true' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1a690bf0..6d2fe753 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -14,19 +14,23 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4.0.0 + - name: Set node uses: actions/setup-node@v4 with: node-version: lts/* - - run: corepack enable - - run: npm i -g @antfu/ni - - run: nci + cache: pnpm + + - run: pnpm i - name: Build unplugin - run: nr build + run: pnpm run build - name: Build docs - run: nr docs:build + run: pnpm run docs:build env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/publish-commit.yml b/.github/workflows/publish-commit.yml index f881f1fe..e76c2139 100644 --- a/.github/workflows/publish-commit.yml +++ b/.github/workflows/publish-commit.yml @@ -7,7 +7,10 @@ jobs: steps: - uses: actions/checkout@v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4.0.0 + - uses: actions/setup-node@v4 with: node-version: lts/* diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..e5b7a4c3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release + +permissions: + contents: write + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set node + uses: actions/setup-node@v4 + with: + node-version: lts/* + + - run: npx changelogithub + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 162eb2a2..49b70894 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# Latest Changelog + +The changelog for unplugin v2 and later is available on [GitHub Releases](https://github.com/unjs/unplugin/releases). + + # [1.16.0](https://github.com/unjs/unplugin/compare/v1.15.0...v1.16.0) (2024-11-14) diff --git a/docs/.vitepress/components/RepoInfo.vue b/docs/.vitepress/components/RepoInfo.vue index f1bed744..66a328bc 100644 --- a/docs/.vitepress/components/RepoInfo.vue +++ b/docs/.vitepress/components/RepoInfo.vue @@ -10,14 +10,14 @@ defineProps<{