rsnext/.github/actions
Josh Story 6839ef379b
use npm pack instead of yarn pack (#52563)
`yarn pack` does not pack the same way that `npm pack` does. There is at least one bug with how files are treated where node_modules are ignored even inside folders defined by the files config. While this is not currently used in next.js an upcoming change will rely on it. The reason this change makes sense otherwise is we use npm to publish next and during a publish the pack from npm is used. For consistency we should use the same pack for our actions and other code that does repo setup such as `create-next-install` which is used for tests

The implementation is slightly more complicated than just replacing the pack command however. `npm pack` respects gitignore files whereas `yarn pack` does not (or at least not nested ones). For some packages the `"files"` property in package.json is set which overrides any gitignore rules however the `@next/swc` package uses a gitignore to prevent the committing of native binaries but does not use files and thus npm pack does not includes native binaries when yarn pack does. To address this the PR adds a temporary rename of the `next-swc/native/.gitignore` file which allows npm pack to mimic the yarn pack behavior. The reason I did not just add `"files"` is that this package actually publishes to many different package names on npm for each architecture and I was unsure about making changes to the package.json that would potentially affect this codepath.

In addition to those changes there are 2 `.gitignore` files that appear to be outdated and unnecessary. I removed them.
2023-07-11 23:36:07 +00:00
..
issue-labeler Add more spans into OTEL instrumentation to wrap all user defined functions (#47368) 2023-03-22 12:01:33 +00:00
issue-on-comment Create new action that will auto-label issues that have some activity after we mark them as "verify-canary" or "add repro"" (#44815) 2023-01-13 17:20:59 +01:00
issue-validator chore: simplify repo templates (#49073) 2023-05-03 14:42:31 +02:00
next-stats-action use npm pack instead of yarn pack (#52563) 2023-07-11 23:36:07 +00:00
setup-rust Revert "Next Build Turbo POC (#49942)" (#51538) 2023-06-19 21:54:04 -07:00
validate-docs-links docs: Migrate error messages to MDX and App Router. (#52038) 2023-07-05 06:11:16 -07:00