-
-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
Kudos, SonarCloud Quality Gate passed! |
@@ -6,10 +6,10 @@ | |||
"scripts": { | |||
"release": "semantic-release", | |||
"lint": "eslint --max-warnings 0 --config .eslintrc lib", | |||
"package": "npm run test && ncc build lib/index.js -o dist", | |||
"package": "ncc build lib/index.js -o dist -s --external=\"@npmcli/run-script\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for clarification, why @npmcli/run-script
is treated as external? I think that we should also add --minify
flag to minify output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for clarification, why @npmcli/run-script is treated as external
for some reason it is not working in ncc, there is a bug that is not fixed and this was the only known workaround to add it as dependency and use this way
I think that we should also add --minify flag to minify output.
I don't think it is necessary, it will only make it unreadable. It is not officially recommended by GH Actions, meaning it is not needed for them aka not needed for us
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is necessary, it will only make it unreadable.
Do you really think that someone will read the dist
bundle, even if it isn't minified? 😄 But ok, we can disable this at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🎉 This PR is included in version 1.0.32 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
## 1.0.0 (2024-01-09) ### ⚠ BREAKING CHANGES * refactor action to be CLI based (asyncapi#348) * switch to dockerized github action (asyncapi#182) * use latest generator rc release in the action (#8) ### Features * add automation of version in action.yml ([31cd450](31cd450)) * init version of the github action ([#2](#2)) ([971bc14](971bc14)) * move automation from workflow to releaserc ([174627f](174627f)) * refactor action to be CLI based ([asyncapi#348](https://github.com/ash17290/github-action-for-cli/issues/348)) ([2c68a25](2c68a25)) * start supporting spec 2.4 by using latest generator version 1.9.5 ([asyncapi#233](https://github.com/ash17290/github-action-for-cli/issues/233)) ([25a6baf](25a6baf)) * switch to dockerized github action ([asyncapi#182](https://github.com/ash17290/github-action-for-cli/issues/182)) ([ba5b4c5](ba5b4c5)) * Update package.json ([1e48b93](1e48b93)) * update versions in action.yml ([c7c1c3e](c7c1c3e)) * use latest generator ([#6](#6)) ([401da6f](401da6f)) * use latest generator rc release in the action ([#8](#8)) ([c648dd3](c648dd3)) ### Bug Fixes * add missing read-package-json-fast ([asyncapi#148](https://github.com/ash17290/github-action-for-cli/issues/148)) ([fdd3702](fdd3702)) * change references to proper organization in package.json ([#4](#4)) ([5a98a74](5a98a74)) * dist should be refreshed after initial installation ([asyncapi#115](https://github.com/ash17290/github-action-for-cli/issues/115)) ([6a7763e](6a7763e)) * move from node 16 to 14 because of failing docker build ([asyncapi#237](https://github.com/ash17290/github-action-for-cli/issues/237)) ([ecf43b0](ecf43b0)) * npmcli run-script separated from bundle as external dep ([asyncapi#117](https://github.com/ash17290/github-action-for-cli/issues/117)) ([95f16ed](95f16ed)) * refresh dist on each release ([asyncapi#105](https://github.com/ash17290/github-action-for-cli/issues/105)) ([19e0d4e](19e0d4e)) * remove ncc packaging ([asyncapi#300](https://github.com/ash17290/github-action-for-cli/issues/300)) ([a80a16e](a80a16e)) * remove semantic-release to fix release 1.0.47 ([asyncapi#158](https://github.com/ash17290/github-action-for-cli/issues/158)) ([da8d19f](da8d19f)) * rename package name to `github-action-for-cli` ([asyncapi#371](https://github.com/ash17290/github-action-for-cli/issues/371)) ([d6da896](d6da896)) * semantic release installed on release ([asyncapi#153](https://github.com/ash17290/github-action-for-cli/issues/153)) ([75e31e5](75e31e5)) * semantic release script ([asyncapi#151](https://github.com/ash17290/github-action-for-cli/issues/151)) ([c0aea69](c0aea69)) * update @asyncapi/generator to 1.1.0 version ([asyncapi#21](https://github.com/ash17290/github-action-for-cli/issues/21)) ([ede258f](ede258f)) * update @asyncapi/generator to 1.1.1 version ([asyncapi#24](https://github.com/ash17290/github-action-for-cli/issues/24)) ([66a60b5](66a60b5)) * update @asyncapi/generator to 1.1.10 version ([asyncapi#47](https://github.com/ash17290/github-action-for-cli/issues/47)) ([92d68b0](92d68b0)) * update @asyncapi/generator to 1.1.11 version ([asyncapi#49](https://github.com/ash17290/github-action-for-cli/issues/49)) ([1b09888](1b09888)) * update @asyncapi/generator to 1.1.2 version ([asyncapi#26](https://github.com/ash17290/github-action-for-cli/issues/26)) ([5630a19](5630a19)) * update @asyncapi/generator to 1.1.3 version ([asyncapi#28](https://github.com/ash17290/github-action-for-cli/issues/28)) ([703e23d](703e23d)) * update @asyncapi/generator to 1.1.4 version ([asyncapi#30](https://github.com/ash17290/github-action-for-cli/issues/30)) ([27b8fe6](27b8fe6)) * update @asyncapi/generator to 1.1.5 version ([asyncapi#32](https://github.com/ash17290/github-action-for-cli/issues/32)) ([12b1a57](12b1a57)) * update @asyncapi/generator to 1.1.8 version ([asyncapi#41](https://github.com/ash17290/github-action-for-cli/issues/41)) ([48c7982](48c7982)) * update @asyncapi/generator to 1.1.9 version ([asyncapi#44](https://github.com/ash17290/github-action-for-cli/issues/44)) ([d697955](d697955)) * update @asyncapi/generator to 1.14.1 version ([asyncapi#337](https://github.com/ash17290/github-action-for-cli/issues/337)) ([57cc944](57cc944)) * update @asyncapi/generator to 1.14.2 version ([asyncapi#342](https://github.com/ash17290/github-action-for-cli/issues/342)) ([62d4540](62d4540)) * update @asyncapi/generator to 1.14.3 version ([asyncapi#344](https://github.com/ash17290/github-action-for-cli/issues/344)) ([2f546de](2f546de)) * update @asyncapi/generator to 1.15.0 version ([asyncapi#346](https://github.com/ash17290/github-action-for-cli/issues/346)) ([dc221a4](dc221a4)) * update @asyncapi/generator to 1.15.1 version ([asyncapi#349](https://github.com/ash17290/github-action-for-cli/issues/349)) ([545b4be](545b4be)) * update @asyncapi/generator to 1.15.2 version ([asyncapi#351](https://github.com/ash17290/github-action-for-cli/issues/351)) ([5034161](5034161)) * update @asyncapi/generator to 1.15.3 version ([asyncapi#353](https://github.com/ash17290/github-action-for-cli/issues/353)) ([147b8dd](147b8dd)) * update @asyncapi/generator to 1.15.4 version ([asyncapi#355](https://github.com/ash17290/github-action-for-cli/issues/355)) ([4e11099](4e11099)) * update @asyncapi/generator to 1.15.5 version ([asyncapi#357](https://github.com/ash17290/github-action-for-cli/issues/357)) ([f8be4d5](f8be4d5)) * update @asyncapi/generator to 1.15.6 version ([asyncapi#359](https://github.com/ash17290/github-action-for-cli/issues/359)) ([e4567f1](e4567f1)) * update @asyncapi/generator to 1.15.7 version ([asyncapi#361](https://github.com/ash17290/github-action-for-cli/issues/361)) ([97847dc](97847dc)) * update @asyncapi/generator to 1.15.8 version ([asyncapi#364](https://github.com/ash17290/github-action-for-cli/issues/364)) ([8a7ce2a](8a7ce2a)) * update @asyncapi/generator to 1.15.9 version ([asyncapi#366](https://github.com/ash17290/github-action-for-cli/issues/366)) ([a0cd7b3](a0cd7b3)) * update @asyncapi/generator to 1.16.0 version ([asyncapi#369](https://github.com/ash17290/github-action-for-cli/issues/369)) ([ffabb9b](ffabb9b)) * update @asyncapi/generator to 1.2.0 version ([asyncapi#51](https://github.com/ash17290/github-action-for-cli/issues/51)) ([c49fd8f](c49fd8f)) * update @asyncapi/generator to 1.3.0 version ([asyncapi#53](https://github.com/ash17290/github-action-for-cli/issues/53)) ([38a09a8](38a09a8)) * update @asyncapi/generator to 1.4.0 version ([asyncapi#55](https://github.com/ash17290/github-action-for-cli/issues/55)) ([305a3ff](305a3ff)) * update @asyncapi/generator to 1.5.0 version ([asyncapi#57](https://github.com/ash17290/github-action-for-cli/issues/57)) ([7d5af75](7d5af75)) * update @asyncapi/generator to 1.6.0 version ([asyncapi#59](https://github.com/ash17290/github-action-for-cli/issues/59)) ([f7d6620](f7d6620)) * update @asyncapi/generator to 1.6.1 version ([asyncapi#61](https://github.com/ash17290/github-action-for-cli/issues/61)) ([29069b1](29069b1)) * update @asyncapi/generator to 1.6.10 version ([255ae5d](255ae5d)) * update @asyncapi/generator to 1.6.13 version ([52a931b](52a931b)) * update @asyncapi/generator to 1.6.14 version ([b5aca7d](b5aca7d)) * update @asyncapi/generator to 1.6.15 version ([8f921a4](8f921a4)) * update @asyncapi/generator to 1.6.2 version ([asyncapi#63](https://github.com/ash17290/github-action-for-cli/issues/63)) ([319d164](319d164)) * update @asyncapi/generator to 1.6.3 version ([asyncapi#65](https://github.com/ash17290/github-action-for-cli/issues/65)) ([dcf0a61](dcf0a61)) * update @asyncapi/generator to 1.6.4 version ([asyncapi#68](https://github.com/ash17290/github-action-for-cli/issues/68)) ([1cd74a1](1cd74a1)) * update @asyncapi/generator to 1.6.5 version ([asyncapi#72](https://github.com/ash17290/github-action-for-cli/issues/72)) ([1b2683a](1b2683a)) * update @asyncapi/generator to 1.6.7 version ([cfbeed9](cfbeed9)) * update @asyncapi/generator to 1.6.8 version ([e56d4a6](e56d4a6)) * update @asyncapi/generator to 1.7.0 version ([365f3c1](365f3c1)) * update @asyncapi/generator to 1.7.1 version ([c1de4b7](c1de4b7)) * update @asyncapi/generator to 1.7.2 version ([08e01e7](08e01e7)) * update @asyncapi/generator to 1.7.3 version ([5f5fd28](5f5fd28)) * update @asyncapi/generator to 1.7.4 version ([52d2f0e](52d2f0e)) * update @asyncapi/generator to 1.8.0 version ([7e3a6f1](7e3a6f1)) * update @asyncapi/generator to 1.8.10 version ([96b4cff](96b4cff)) * update @asyncapi/generator to 1.8.11 version ([98075ce](98075ce)) * update @asyncapi/generator to 1.8.12 version ([316ff43](316ff43)) * update @asyncapi/generator to 1.8.13 version ([f71571f](f71571f)) * update @asyncapi/generator to 1.8.14 version ([09ea025](09ea025)) * update @asyncapi/generator to 1.8.15 version ([8051b3f](8051b3f)) * update @asyncapi/generator to 1.8.17 version ([c1e8fb4](c1e8fb4)) * update @asyncapi/generator to 1.8.18 version ([713e68b](713e68b)) * update @asyncapi/generator to 1.8.19 version ([614c311](614c311)) * update @asyncapi/generator to 1.8.20 version ([f88ad46](f88ad46)) * update @asyncapi/generator to 1.8.21 version ([42f25a3](42f25a3)) * update @asyncapi/generator to 1.8.22 version ([4ce0e87](4ce0e87)) * update @asyncapi/generator to 1.8.24 version ([0b30386](0b30386)) * update @asyncapi/generator to 1.8.25 version ([4e48184](4e48184)) * update @asyncapi/generator to 1.8.4 version ([6068e03](6068e03)) * update @asyncapi/generator to 1.8.5 version ([e2ff97f](e2ff97f)) * update @asyncapi/generator to 1.8.6 version ([0634e69](0634e69)) * update @asyncapi/generator to 1.8.7 version ([2e9bbf6](2e9bbf6)) * update @asyncapi/generator to 1.8.8 version ([b0864ca](b0864ca)) * update @asyncapi/generator to 1.8.9 version ([d589f2e](d589f2e)) * update @asyncapi/generator to 1.9.10 version ([asyncapi#247](https://github.com/ash17290/github-action-for-cli/issues/247)) ([37c1c98](37c1c98)) * update @asyncapi/generator to 1.9.11 version ([asyncapi#253](https://github.com/ash17290/github-action-for-cli/issues/253)) ([51c7668](51c7668)) * update @asyncapi/generator to 1.9.12 version ([asyncapi#258](https://github.com/ash17290/github-action-for-cli/issues/258)) ([19dc010](19dc010)) * update @asyncapi/generator to 1.9.14 version ([asyncapi#272](https://github.com/ash17290/github-action-for-cli/issues/272)) ([f915654](f915654)) * update @asyncapi/generator to 1.9.15 version ([asyncapi#284](https://github.com/ash17290/github-action-for-cli/issues/284)) ([f8c985f](f8c985f)) * update @asyncapi/generator to 1.9.16 version ([asyncapi#290](https://github.com/ash17290/github-action-for-cli/issues/290)) ([95362c0](95362c0)) * update @asyncapi/generator to 1.9.17 version ([asyncapi#292](https://github.com/ash17290/github-action-for-cli/issues/292)) ([9d3a07c](9d3a07c)) * update @asyncapi/generator to 1.9.2 version ([asyncapi#220](https://github.com/ash17290/github-action-for-cli/issues/220)) ([13ed363](13ed363)) * update @asyncapi/generator to 1.9.6 version ([asyncapi#241](https://github.com/ash17290/github-action-for-cli/issues/241)) ([84bcc8a](84bcc8a)) * update @asyncapi/generator to 1.9.7 version ([asyncapi#243](https://github.com/ash17290/github-action-for-cli/issues/243)) ([8b57215](8b57215)) * update @asyncapi/generator to 1.9.9 version ([asyncapi#245](https://github.com/ash17290/github-action-for-cli/issues/245)) ([85c3f72](85c3f72)) * update versions in action.yml ([2a0784a](2a0784a)) * use proper scripts for any platform ([asyncapi#152](https://github.com/ash17290/github-action-for-cli/issues/152)) ([670a8a1](670a8a1)) * windows breaking release ([asyncapi#150](https://github.com/ash17290/github-action-for-cli/issues/150)) ([7abf893](7abf893))
Fixes #103
main fix here was
"generate:assets": "npm run package"
to get bump action also update the repo with latest dist. Rest of changes are related to fixing failingncc