Skip to content

ci: fix JSON import in npm-publish workflow#34

Merged
boronine merged 1 commit into
hsluv:mainfrom
boronine-bot:fix-publish-json-import
Jun 16, 2026
Merged

ci: fix JSON import in npm-publish workflow#34
boronine merged 1 commit into
hsluv:mainfrom
boronine-bot:fix-publish-json-import

Conversation

@boronine-bot

Copy link
Copy Markdown
Contributor

The publish workflow failed with:

TypeError: Cannot read properties of undefined (reading 'version')

When importing JSON with an ESM import attribute, the default export is the parsed JSON object itself, so pkg.version should be used instead of pkg.default.version.

Fixes the failure seen in https://github.com/hsluv/hsluv-sass/actions/runs/27614027386/job/81645331562

@boronine
boronine merged commit fce0426 into hsluv:main Jun 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants