From 73227bc5f543776dae4ae5fac197c1f1eabd16ba Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Wed, 3 Jul 2024 12:36:00 +0200 Subject: [PATCH 1/2] chore: Add changelog and release workflow --- .github/workflows/release-please.yml | 31 +++++++++++++++++++++++ CHANGELOG.md | 38 ++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 CHANGELOG.md diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..5282ce3 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,31 @@ +name: release-please + +on: + push: + branches: + - main + +jobs: + release-please: + runs-on: ubuntu-latest + outputs: + release_created: ${{ steps.release.outputs.release_created }} + steps: + - uses: googleapis/release-please-action@v4 + id: release + with: + release-type: node + + npm-publish: + needs: release-please + if: ${{ needs.release-please.outputs.release_created }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + registry-url: 'https://registry.npmjs.org' + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a602112 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,38 @@ +# Changelog + +## [1.8.1] - 2024-06-18 + +### Bug Fixes + +- Named export `Hook` missing from types (#92) +- `parentResolve` is not a function (#100) +- CommonJs bare specifier resolution (#96) +- Explicitly named exports should be exported over `export *` (#103) +- Fallback to `parentLoad` if parsing fails (#104) + +## [1.8.0] - 2024-05-31 + +### Features + +- Add `Hook` named export (#88) + +### Bug Fixes + +- Handle cyclical reference to current file (#83) +- Resolve re-exports of external modules (#78) +- Handling of default and star exports (#85) + +### Testing + +- Skip static-import on > v21 (#81) + +### Miscellaneous Tasks + +- Don't create a package-lock file (#67) + +## [1.7.4] - 2024-04-30 + +### Bug Fixes + +- Ensure the hooked module exports has @@toStringTag property (#66) + From 5260234b98443ab3eddddded9b5a859d69495ee0 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Wed, 3 Jul 2024 14:18:39 +0200 Subject: [PATCH 2/2] Use Github releases --- .release-please-manifest.json | 4 ++++ CHANGELOG.md | 38 ----------------------------------- 2 files changed, 4 insertions(+), 38 deletions(-) create mode 100644 .release-please-manifest.json delete mode 100644 CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..04d4994 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,4 @@ +{ + "pull-request-title-pattern": "chore: release v${version}", + "changelog-type": "github" +} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index a602112..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,38 +0,0 @@ -# Changelog - -## [1.8.1] - 2024-06-18 - -### Bug Fixes - -- Named export `Hook` missing from types (#92) -- `parentResolve` is not a function (#100) -- CommonJs bare specifier resolution (#96) -- Explicitly named exports should be exported over `export *` (#103) -- Fallback to `parentLoad` if parsing fails (#104) - -## [1.8.0] - 2024-05-31 - -### Features - -- Add `Hook` named export (#88) - -### Bug Fixes - -- Handle cyclical reference to current file (#83) -- Resolve re-exports of external modules (#78) -- Handling of default and star exports (#85) - -### Testing - -- Skip static-import on > v21 (#81) - -### Miscellaneous Tasks - -- Don't create a package-lock file (#67) - -## [1.7.4] - 2024-04-30 - -### Bug Fixes - -- Ensure the hooked module exports has @@toStringTag property (#66) -