You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The check-dist.yml workflow of this repository does not seem to work properly. If I understand it correctly, it is supposed to detect whether /dist/index.js has been properly updated.
However, the workflow only runs npm run build, which does not update the /dist directory. I think it should run npm run pack instead.
Or alternatively if it is not desired that users commit the /dist/index.js in their pull requests, maybe there should be one workflow which fails in case users commit this file. And another workflow which runs on main and automatically updates /dist/index.js?
The text was updated successfully, but these errors were encountered:
Good catch!
I presume this was originally copied from the gradle-build-action repository, where npm run build does indeed build the dist directory.
I've pushed a fix so this is consistent between projects I work on.
Yes, ideally we'd have a workflow that generates the dist directory on any push to main, and prohibits direct changes to dist in a PR. But for now that's a manual process, with a (broken until now) check.
- Updated package.json to be more consistent with `gradle/actions` repo
- Updated 'check-dist' workflow to be more consistent with `gradle/actions` repo
- Check-dist now actually checks! Fixes#171
The
check-dist.yml
workflow of this repository does not seem to work properly. If I understand it correctly, it is supposed to detect whether/dist/index.js
has been properly updated.However, the workflow only runs
npm run build
, which does not update the/dist
directory. I think it should runnpm run pack
instead.Or alternatively if it is not desired that users commit the
/dist/index.js
in their pull requests, maybe there should be one workflow which fails in case users commit this file. And another workflow which runs onmain
and automatically updates/dist/index.js
?The text was updated successfully, but these errors were encountered: