24 Commits

Author SHA1 Message Date
James Beard
4fa5c7dc2b
Preparing for NPM trusted publishing plus node version housekeeping (#2952)
* Added id-token permission to allow for migration to npm trusted
publishing. Updating node versions to reflect support matrix.
* Renamed turf.yml more descriptively to ci.yml
2025-12-10 09:51:03 +11:00
mfedderly
2c28ed1b4e
Pin the exact SHA1's of GitHub Actions we use (#2863)
This is as recommended in the security guide https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-third-party-actions, and as demonstrated recently in an action we don't use https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
2025-03-29 12:43:37 -04:00
James Beard
a8cbea3a48
Revamped content and layout of project docs (README, CONTRIBUTING, etc) (#2770)
* Moved "optional" project documentation files to docs/ subdir to minimise clutter in project root.

* Verbatim copy of Contributor Covenant v2.1. Updated code of conduct contact details, removing anyone who don't list obvious contact details (@lyzidiamond and @tcql).

* Split publishing topic out into a separate document. Only a small subset of contributors will ever publish so better to have CONTRIBUTING focus on coding and PR related activities.

* Updated issue and PR templates to read a bit better, ask for more meaningful details.

* Updating open collective stats, project goals for coming year.

* Split readme into a few pieces. Cut a lot of cut and paste commands (hard to guarantee currency). Removed REGEN references - think it's use should be discouraged, though probably differing opinions on that one!

Co-authored-by: mfedderly <24275386+mfedderly@users.noreply.github.com>
Co-authored-by: Tim Welch <tim.j.welch@gmail.com>

---------

Co-authored-by: mfedderly <24275386+mfedderly@users.noreply.github.com>
Co-authored-by: Tim Welch <tim.j.welch@gmail.com>
2024-12-28 14:34:02 +11:00
James Beard
7ae02b9333
Drop node 16 from CI (end of life was a year ago). Add node 22 instead. (#2761) 2024-12-05 11:32:26 +11:00
mfedderly
948cdafaf7
Upgrade pnpm/action-setup in github actions (#2696) 2024-08-09 13:52:25 -04:00
mfedderly
e231564afb
Update PR/develop action to cache pnpm files (#2671)
* Update PR/develop action to cache pnpm files

* Install pnpm before node

* empty commit for build speed testing

---------

Co-authored-by: Tim Welch <tim.j.welch@gmail.com>
2024-08-06 12:37:26 -04:00
James Beard
15e1449c11
Add support/6.x branch to CI config, so related activity prompts a build and test cycle. (#2673) 2024-08-06 10:15:40 -04:00
Tim Welch
36167829d9
deprecate CHANGELOG, improve release action, PR template, Contributing doc (#2621)
* update release action - github release adds auto-generated commit log, marks draft, marks latest release
* refactors Contributing including new release docs
* Simplifies the pull request template
2024-06-23 00:29:22 -07:00
mfedderly
1f39da5355
Prep infra for v7 release (#2607)
* Prep infra for v7 release

* Update workflow name

* Clarify release process instructions

* Move publish commands into workflow and out of package.json

* Prerelease version should include merged tags

* Update release procedure to reflect the user pushing the release tag

* Fix build

* Remove errant yml
2024-05-17 11:44:57 -04:00
Tim Welch
876702a454
Update ISSUE_TEMPLATE.md (#2576) 2024-02-03 15:23:24 -05:00
mfedderly
1411d63a74
Fix issues with prerelease builds (#2562)
- Added a fetch-depth: 0 config that should give us the git history and correctly calculate the canary versions
- Don't run scripts as part of the lerna release step, they were already run by the github actions steps
- Fix issue with reference to the node 'util' package that was preventing the browser version of @turf/turf from working
2023-12-30 16:52:56 -05:00
mfedderly
135b89890b
Update release instructions for pnpm (#2560)
* Update release instructions for pnpm

* Attempt to provide automatic canary builds
2023-12-30 11:11:35 +11:00
James Beard
4ea81e6b96
Migration to pnpm and improved exports strategy (#2555)
* Moving to pnpm as package manager. Also taking the opportunity to tidy up our cjs / esm situation using tsup (instead of tsc and rollup). Can't get monorepolint to work with new setup so disabling for the time being.

* Changing all Turf imports to use named imports. Adding a few missing named exports. Updating github workflow actions to pnpm instead of yarn.

* Updating typescript module and moduleResolution mechanisms to "node16". Not tracking nodenext just yet. Changing tsup command to generate d.ts files that arethetypeswrong approves of.

* Tweaking github workflows to explicitely install pnpm.

* Looks like node needs the chosen cache binary installed first. Trying without cache as a first step.

* Seem to be hitting the tsx bug described here: https://github.com/privatenumber/tsx/issues/421 Upgrading to latest tsx to remedy.

* Forgot to update lock file after updating tsx dep in package.json files.

* Sorting modules exported from @turf/turf alphabetically. Preparatory commit to add unexported modules.

* Converting index.mjs to typescript, and simplifying re-exported imports, and ordering alphabetically. Added in a couple of packages - convex, booleanValid and nearestNeighbourAnalysis. Rollup now only used in packages/turf so merging project root base config into there. Also now only using rollup in packages/turf to do final conversion to web module. JS and d.ts files generated the same as other modules, using tsup.

* Including tslib in @turf/turf build now that it's a TS module.

* Lot of per-package tsconfig items now on the tsup command line, so stripping back tsconfig.json to the bare minimum. Adding tsconfig.json to packages that while still only JS, are now processed by tsup.

* Same as last commit - simplifying tsconfig.json - except these are the subset of packages that had multiple entry points e.g. 3rd party code hosted locally in lib/

* Incorporating some suggestions from @favna on being more explicit with d.ts entries. https://github.com/Turfjs/turf/issues/2307#issuecomment-1858653048  Specifying overall module type as commonjs explicitly.

* Reapplying cjsInterop / splitting workaround for CJS exports that we had on build target command line earlier in this PR in to tsup config file. Also disabling treeshaking as this was generating a warning for CJS files and causing the workaround above to not work.

* Upgrading rollup and related plugins. Updating to recommended modern browserslist config in babel.config.json e.g. previous chrome 67 and edge 17 are 5 years old, ie11 is just ... ugh

* Fluffed the browserslist config - need to cover es5 as well.

* Update .github/workflows/turf.yml to use actions/checkout v4.

Co-authored-by: Jeroen Claassens <jeroen.claassens@live.nl>

---------

Co-authored-by: Jeroen Claassens <jeroen.claassens@live.nl>
2023-12-19 10:14:18 +11:00
James Milner
1a155dfc2e
update github actions to latest versions (#2502) 2023-09-30 17:15:00 +01:00
mfedderly
e9400e1c1d
Update supported node-versions based on node EOL (#2451) 2023-07-12 11:43:01 -04:00
James Milner
44d2ca26e1
remove node 12 and add in node 18 and 20 (#2430)
Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2023-05-01 00:36:10 +01:00
Gabriela Gutierrez
5516e56410
Set minimum permissions for turf.yml (#2416)
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-03-18 19:07:49 +00:00
James Milner
4eab5275aa
Throw exit code when there is a diff after yarn install (#2128)
Co-authored-by: mfedderly <mdfedderly@mdfedderly.com>
2021-06-24 07:35:47 -04:00
mfedderly
a814ba2696
Update github actions to cache yarn (#2113)
* Update github actions to cache yarn

Right now the yarn install time takes up over half of our build time, this will probably cut that down dramatically. I copy pasted it directly from their examples: https://github.com/actions/cache/blob/main/examples.md#node---yarn

* wrecked by prettier

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2021-06-22 19:12:16 -04:00
James Milner
e30872ebe9
Add Github Actions Badge to README (#2112)
* Add github actions badge to README

* Test on Node versions 12, 14, 16
2021-06-22 18:26:42 -04:00
James Milner
4a70dcf080
Move to GitHub Actions from Travis for CI (#2111)
* Move to GitHub actions from Travis

* Use yarn instead of npm for CI steps
2021-06-22 22:07:50 +01:00
mfedderly
c952c44a25
Add prompt for version in issues (#2020)
* Add prompt for version in issues

* Update ISSUE_TEMPLATE.md
2021-01-22 11:35:43 -05:00
Jess
001f06776e Updated .github/ISSUE_TEMPLATE.md (optional) 2018-03-01 13:11:14 +09:00
Denis
fee3d59a97 Move github related files to .github 2017-05-23 10:32:23 -04:00