diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9b1ed33..536a6f49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,14 +12,21 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Checkout + uses: actions/checkout@v4 + + - name: Enable Corepack + run: corepack enable + + - 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 +34,32 @@ 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: Set node version to ${{ matrix.node }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + + - name: Enable Corepack + run: corepack enable + - 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/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..d3fc9908 100644 --- a/docs/.vitepress/components/RepoInfo.vue +++ b/docs/.vitepress/components/RepoInfo.vue @@ -26,14 +26,12 @@ defineProps<{