Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Rebuild packages after version bump to ensure dist/package.json is updated

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi :) Isn't the package then already on the NPM registry with the previous npm run releases step?

Copy link
Author

@zingazzi zingazzi Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are absoluty right! Sorry my fault. I think another solution to fix this error can be add an Hook in release-it.json.

Something like this

"hooks": {
    "before:release": "npm run build"
  }

What do you think about this solution?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not very familiar with these hooks but it sounds reasonable to me.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've update the hook. Feel free to merge it if you consider it a valid solution.
Thank you for your patience.

- name: Rebuild packages after version bump
run: npm run build