npm / template-oss

a template package for npm CLI team development
Other
26 stars 19 forks source link

feat: use macos-(latest|13) based on node version #440

Closed lukekarrys closed 6 months ago

lukekarrys commented 6 months ago

macos-latest recently switch to M1s which don't have Node builds for v14 and below. This change adds both macos-latest and macos-13 (which uses x86 cpus) and then excludes one or the other based on the Node version in the matrix. The result is still only one macOS CI job per Node version, but it will now use the correct CPU architecture per version.

lukekarrys commented 6 months ago

@fritzy good call, landed it with some more context in the commit and PR body 👍