From 754cba7185bb700d5fdaaf6c13efb4dc053b7d77 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 10 Dec 2024 09:24:55 +0000 Subject: [PATCH 1/3] chore(tooling): setup release pipeline --- .changeset/config.json | 11 - .github/workflows/bundle-size.yml | 2 +- .github/workflows/checks.yml | 2 +- .github/workflows/experimental.yml | 2 +- .github/workflows/nightly.yml | 2 +- .github/workflows/release.yml | 52 +++ .github/workflows/tests.yml | 10 +- CONTRIBUTING.md | 71 ----- package.json | 7 +- release-please-config.json | 25 ++ yarn.lock | 496 +---------------------------- 11 files changed, 96 insertions(+), 584 deletions(-) delete mode 100644 .changeset/config.json create mode 100644 .github/workflows/release.yml create mode 100644 release-please-config.json diff --git a/.changeset/config.json b/.changeset/config.json deleted file mode 100644 index a86ee57174..0000000000 --- a/.changeset/config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json", - "changelog": false, - "commit": false, - "fixed": [["@react-spring/*"]], - "linked": [], - "access": "public", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": ["@react-spring/demo", "@react-spring/docs"] -} diff --git a/.github/workflows/bundle-size.yml b/.github/workflows/bundle-size.yml index 3018694cf9..218135cd88 100644 --- a/.github/workflows/bundle-size.yml +++ b/.github/workflows/bundle-size.yml @@ -3,7 +3,7 @@ name: Bundle-size on: pull_request: branches: - - main + - next env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index b8aef4fe48..1acff3f5b1 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -3,7 +3,7 @@ name: Checks on: push: branches: - - 'main' + - next pull_request: {} env: diff --git a/.github/workflows/experimental.yml b/.github/workflows/experimental.yml index 112ed839ca..1bee61a5fd 100644 --- a/.github/workflows/experimental.yml +++ b/.github/workflows/experimental.yml @@ -36,7 +36,7 @@ jobs: run: yarn install --immutable - name: Build - run: yarn build-ci + run: yarn build:ci - run: ./scripts/version-and-publish.sh env: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 16a42eb844..e44eb5ce06 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -62,7 +62,7 @@ jobs: - name: Build if: steps.version.outputs.NEXT_VERSION - run: yarn build-ci + run: yarn build:ci - name: Setup npmrc if: steps.version.outputs.NEXT_VERSION diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..dde1fa3eac --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,52 @@ +--- +name: Release Please + +on: + push: + branches: + - main + +permissions: + contents: read + pull-requests: write + +env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }} + cancel-in-progress: true + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + id: release + + # Publish to NPM on new releases + - uses: actions/checkout@v4 + if: ${{ steps.release.outputs.releases_created }} + + - uses: actions/setup-node@v4 + if: ${{ steps.release.outputs.releases_created }} + with: + cache: yarn + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + + - name: Install + if: ${{ steps.release.outputs.releases_created }} + run: yarn install --immutable + + - name: Build + if: ${{ steps.release.outputs.releases_created }} + run: yarn build:ci + + # Release Please has already incremented versions and published tags, so we just + # need to publish all unpublished versions to NPM here + - run: yarn workspaces foreach npm publish --access=public + if: ${{ steps.release.outputs.releases_created }} + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d4f64bfa5b..5ea533ec37 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,7 @@ name: Tests on: push: branches: - - 'main' + - next pull_request: {} env: @@ -57,7 +57,7 @@ jobs: run: yarn install --immutable - name: Build - run: yarn build-ci --filter=!@react-spring/docs + run: yarn build:ci - name: Pack run: yarn package @@ -115,7 +115,7 @@ jobs: run: yarn install --immutable - name: Build - run: yarn build-ci + run: yarn build:ci - name: Test run: yarn test:unit @@ -147,7 +147,7 @@ jobs: run: yarn add typescript@${{ matrix.ts }} - name: Build - run: yarn build-ci + run: yarn build:ci - name: Test run: | @@ -177,7 +177,7 @@ jobs: # run: yarn install --immutable # - name: Build - # run: yarn build-ci + # run: yarn build:ci # - name: Test # run: yarn test:e2e diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8202187c4f..c45e490f84 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,74 +20,3 @@ Be sure your commit messages follow this specification: https://www.conventional ### Windows permission errors Some Windows users may need to [enable developer mode](https://howtogeek.com/292914/what-is-developer-mode-in-windows-10) if experiencing `EPERM: operation not permitted, symlink` with Preconstruct. If this persists, you might be running on an unsupported drive/format. In which case, consider using [Docker](https://docs.docker.com/docker-for-windows). - -### Duplicate `react` errors - -React 16.8+ has global state to support its "hooks" feature, so you need to ensure only one copy of `react` exists in your program. Otherwise, you'll most likely see [this error](https://reactjs.org/warnings/invalid-hook-call-warning.html). Please try the following solutions, and let us know if it still doesn't work for you. - -- **For `create-react-app` users:** Follow this guide: https://github.com/facebook/react/issues/13991#issuecomment-496383268 - -- **For `webpack` users:** Add an alias to `webpack.config.js` like this: - - ```js - alias: { - react: path.resolve('node_modules/react'), - } - ``` - -- **For `gatsby` users:** Install `gatsby-plugin-alias-imports` and add this to your `gatsby-config.js` module: - ```js - { - resolve: `gatsby-plugin-alias-imports`, - options: { - alias: { - react: path.resolve('node_modules/react'), - }, - }, - }, - ``` - -# Publishing - -We use [`changesets`](https://github.com/atlassian/changesets) to publish our package now. -All our dependencies are fixed using ~ after [1414](https://github.com/pmndrs/react-spring/issues/1414) but luckily changesets will bump them for every minor version we release. - -## Simple release - -You want to release some new features that haven't been released yet: - -```shell -yarn changeset:add -``` - -Follow the prompt to flag which packages need to update although with `react-spring` we keep all our packages at the same version. - -Then you'll run: - -```shell -yarn vers -``` - -This will update all the packages correctly according to what version you just set with the `add` script & possibly update the deps within those packages. - -Finally: - -```shell -yarn release -``` - -This will build the packages, publish them & push the tags to github to signify a new release. Please then update the `releases` on github & the changelog on `react-spring.io` - -## Prerelease - -Everything above applies but you must first run: - -```shell -yarn changeset pre enter beta | alpha | next -``` - -If you find you're stuck in a prerelease and trying to do a Simple Release, try running: - -```shell -yarn changeset pre exit -``` diff --git a/package.json b/package.json index 656c1be4fc..be93d162d8 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ ] }, "scripts": { - "build-ci": "turbo run build --filter=!@react-spring/doc", + "build:ci": "turbo run build --filter=!@react-spring/doc", "build": "turbo run build", "changeset": "changeset", "clean": "turbo run clean", @@ -48,9 +48,7 @@ "test:unit": "jest", "test:cov": "jest --coverage", "test:ts": "tsc --noEmit", - "test:e2e": "start-server-and-test 'yarn vite serve packages/parallax/test --host' http-get://localhost:3000 'yarn cypress run'", - "release": "yarn clean && yarn && yarn build && yarn test:ts && yarn test:unit && yarn changeset publish --no-git-tag", - "vers": "yarn changeset version" + "test:e2e": "start-server-and-test 'yarn vite serve packages/parallax/test --host' http-get://localhost:3000 'yarn cypress run'" }, "commitlint": { "extends": [ @@ -63,7 +61,6 @@ } }, "devDependencies": { - "@changesets/cli": "2.27.9", "@commitlint/cli": "19.5.0", "@commitlint/config-conventional": "19.5.0", "@react-three/fiber": "8.17.10", diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000000..77040219e4 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "always-link-local": true, + "bootstrap-sha": "8b09751fbde6c20e542312db75c48df61714e3b1", + "plugins": [ + { + "type": "node-workspace", + "updatePeerDependencies": true + } + ], + "packages": { + "packages/animated": {}, + "packages/core": {}, + "packages/parallax": {}, + "packages/rafz": {}, + "packages/react-spring": {}, + "packages/shared": {}, + "packages/types": {}, + "targets/konva": {}, + "targets/nativ": {}, + "targets/three": {}, + "targets/web": {}, + "targets/zdog": {} + } +} diff --git a/yarn.lock b/yarn.lock index 223ae677ba..c6a36f695d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1289,240 +1289,6 @@ __metadata: languageName: node linkType: hard -"@changesets/apply-release-plan@npm:^7.0.5": - version: 7.0.5 - resolution: "@changesets/apply-release-plan@npm:7.0.5" - dependencies: - "@changesets/config": ^3.0.3 - "@changesets/get-version-range-type": ^0.4.0 - "@changesets/git": ^3.0.1 - "@changesets/should-skip-package": ^0.1.1 - "@changesets/types": ^6.0.0 - "@manypkg/get-packages": ^1.1.3 - detect-indent: ^6.0.0 - fs-extra: ^7.0.1 - lodash.startcase: ^4.4.0 - outdent: ^0.5.0 - prettier: ^2.7.1 - resolve-from: ^5.0.0 - semver: ^7.5.3 - checksum: f6a1b90d89fd08b46c11fad05d5fee510ff8a1888c163fd6221ccfb045eab013fa57c0c32c5697d6406852a39cf4df01b44f3ecca4746f30bd610bec54aa9abf - languageName: node - linkType: hard - -"@changesets/assemble-release-plan@npm:^6.0.4": - version: 6.0.4 - resolution: "@changesets/assemble-release-plan@npm:6.0.4" - dependencies: - "@changesets/errors": ^0.2.0 - "@changesets/get-dependents-graph": ^2.1.2 - "@changesets/should-skip-package": ^0.1.1 - "@changesets/types": ^6.0.0 - "@manypkg/get-packages": ^1.1.3 - semver: ^7.5.3 - checksum: 948066a8ca8e12390599f641a0439b6a4d6c1c2a9958f58596aa50cf68d7d594b28acc1eb6bd0ad17df2025f0614006e44728a2614fad2a3d54c669568bf6d65 - languageName: node - linkType: hard - -"@changesets/changelog-git@npm:^0.2.0": - version: 0.2.0 - resolution: "@changesets/changelog-git@npm:0.2.0" - dependencies: - "@changesets/types": ^6.0.0 - checksum: 132660f7fdabbdda00ac803cc822d6427a1a38a17a5f414e87ad32f6dc4cbef5280a147ecdc087a28dc06c8bd0762f8d6e7132d01b8a4142b59fbe1bc2177034 - languageName: node - linkType: hard - -"@changesets/cli@npm:2.27.9": - version: 2.27.9 - resolution: "@changesets/cli@npm:2.27.9" - dependencies: - "@changesets/apply-release-plan": ^7.0.5 - "@changesets/assemble-release-plan": ^6.0.4 - "@changesets/changelog-git": ^0.2.0 - "@changesets/config": ^3.0.3 - "@changesets/errors": ^0.2.0 - "@changesets/get-dependents-graph": ^2.1.2 - "@changesets/get-release-plan": ^4.0.4 - "@changesets/git": ^3.0.1 - "@changesets/logger": ^0.1.1 - "@changesets/pre": ^2.0.1 - "@changesets/read": ^0.6.1 - "@changesets/should-skip-package": ^0.1.1 - "@changesets/types": ^6.0.0 - "@changesets/write": ^0.3.2 - "@manypkg/get-packages": ^1.1.3 - ansi-colors: ^4.1.3 - ci-info: ^3.7.0 - enquirer: ^2.3.0 - external-editor: ^3.1.0 - fs-extra: ^7.0.1 - mri: ^1.2.0 - p-limit: ^2.2.0 - package-manager-detector: ^0.2.0 - picocolors: ^1.1.0 - resolve-from: ^5.0.0 - semver: ^7.5.3 - spawndamnit: ^2.0.0 - term-size: ^2.1.0 - bin: - changeset: bin.js - checksum: 4bd36c152f9f93716b001f3ed849717588d2a9eb97f058e86f95ba6a43d8e4311073174251150aabb96f0a1ab5f8ab5ee6a32f85fc9248363f92b3826227cb9d - languageName: node - linkType: hard - -"@changesets/config@npm:^3.0.3": - version: 3.0.3 - resolution: "@changesets/config@npm:3.0.3" - dependencies: - "@changesets/errors": ^0.2.0 - "@changesets/get-dependents-graph": ^2.1.2 - "@changesets/logger": ^0.1.1 - "@changesets/types": ^6.0.0 - "@manypkg/get-packages": ^1.1.3 - fs-extra: ^7.0.1 - micromatch: ^4.0.2 - checksum: f216f497e09c0fcdd4c397fc3998d1651a171b89981d2bed2a6c23c0f55ffa4e240cadbd13902bf91c218686165689a5183674a5b4682d80d3d5b8b9c569f5f1 - languageName: node - linkType: hard - -"@changesets/errors@npm:^0.2.0": - version: 0.2.0 - resolution: "@changesets/errors@npm:0.2.0" - dependencies: - extendable-error: ^0.1.5 - checksum: 4b79373f92287af4f723e8dbbccaf0299aa8735fc043243d0ad587f04a7614615ea50180be575d4438b9f00aa82d1cf85e902b77a55bdd3e0a8dd97e77b18c60 - languageName: node - linkType: hard - -"@changesets/get-dependents-graph@npm:^2.1.2": - version: 2.1.2 - resolution: "@changesets/get-dependents-graph@npm:2.1.2" - dependencies: - "@changesets/types": ^6.0.0 - "@manypkg/get-packages": ^1.1.3 - picocolors: ^1.1.0 - semver: ^7.5.3 - checksum: 38446343e43f9b8731098e3b42d2525d5399d59cfccc09bdb62c9a48de60c7a893882050202badca3b5cab8405e6deb82e88258a56a318e42749fa60d96d874a - languageName: node - linkType: hard - -"@changesets/get-release-plan@npm:^4.0.4": - version: 4.0.4 - resolution: "@changesets/get-release-plan@npm:4.0.4" - dependencies: - "@changesets/assemble-release-plan": ^6.0.4 - "@changesets/config": ^3.0.3 - "@changesets/pre": ^2.0.1 - "@changesets/read": ^0.6.1 - "@changesets/types": ^6.0.0 - "@manypkg/get-packages": ^1.1.3 - checksum: 7217347f5bfaa56f97d3964e28e23a109d60c42b7c879c0cab6934feb30bdbdebb6dd0e81b4ecb5ec414be442d566b6af90d9224f6a48a52b6c5269c337f54a6 - languageName: node - linkType: hard - -"@changesets/get-version-range-type@npm:^0.4.0": - version: 0.4.0 - resolution: "@changesets/get-version-range-type@npm:0.4.0" - checksum: 2e8c511e658e193f48de7f09522649c4cf072932f0cbe0f252a7f2703d7775b0b90b632254526338795d0658e340be9dff3879cfc8eba4534b8cd6071efff8c9 - languageName: node - linkType: hard - -"@changesets/git@npm:^3.0.1": - version: 3.0.1 - resolution: "@changesets/git@npm:3.0.1" - dependencies: - "@changesets/errors": ^0.2.0 - "@manypkg/get-packages": ^1.1.3 - is-subdir: ^1.1.1 - micromatch: ^4.0.2 - spawndamnit: ^2.0.0 - checksum: 46d780fecd3dbdafde7c96dde7fe35a8461bc6edbff1de92d490971a99f021d60c5b4606a1d4fb778567146810090ede6610cf89407c14bde88edaa246801539 - languageName: node - linkType: hard - -"@changesets/logger@npm:^0.1.1": - version: 0.1.1 - resolution: "@changesets/logger@npm:0.1.1" - dependencies: - picocolors: ^1.1.0 - checksum: acca50ef6bf6e446b46eb576b32f1955bf4579dbf4bbc316768ed2c1d4ba4066c9c73b114eedefaa1b3e360b1060a020e6bd3dbdbc44b74da732df92307beab0 - languageName: node - linkType: hard - -"@changesets/parse@npm:^0.4.0": - version: 0.4.0 - resolution: "@changesets/parse@npm:0.4.0" - dependencies: - "@changesets/types": ^6.0.0 - js-yaml: ^3.13.1 - checksum: 3dd970b244479746233ebd357cfff3816cf9f344ebf2cf0c7c55ce8579adfd3f506978e86ad61222dc3acf1548a2105ffdd8b3e940b3f82b225741315cee2bf0 - languageName: node - linkType: hard - -"@changesets/pre@npm:^2.0.1": - version: 2.0.1 - resolution: "@changesets/pre@npm:2.0.1" - dependencies: - "@changesets/errors": ^0.2.0 - "@changesets/types": ^6.0.0 - "@manypkg/get-packages": ^1.1.3 - fs-extra: ^7.0.1 - checksum: fbe94283dce0223ee79c12fa221105752ac89eb885b77e300ec755682cb06cc0145e10335f4bc6cb26d63473e549556c2b1c8c866242419aee5e41986379652a - languageName: node - linkType: hard - -"@changesets/read@npm:^0.6.1": - version: 0.6.1 - resolution: "@changesets/read@npm:0.6.1" - dependencies: - "@changesets/git": ^3.0.1 - "@changesets/logger": ^0.1.1 - "@changesets/parse": ^0.4.0 - "@changesets/types": ^6.0.0 - fs-extra: ^7.0.1 - p-filter: ^2.1.0 - picocolors: ^1.1.0 - checksum: d00a18a3d04af5c76e7b763096650ebe16589864ab04eaf9e99c88aa77542f64de547b585037fc204d2055f9dd47fae94c789e2f173d3507a4e29dbe6609dd5b - languageName: node - linkType: hard - -"@changesets/should-skip-package@npm:^0.1.1": - version: 0.1.1 - resolution: "@changesets/should-skip-package@npm:0.1.1" - dependencies: - "@changesets/types": ^6.0.0 - "@manypkg/get-packages": ^1.1.3 - checksum: d187ef22495deb63e678d0ff65e8627701e2b52c25bd59dde10ce8646be8d605c0ed0a6af020dd825b137c2fc748fdc6cef52e7774bad4c7a4f404bf182a85cf - languageName: node - linkType: hard - -"@changesets/types@npm:^4.0.1": - version: 4.0.2 - resolution: "@changesets/types@npm:4.0.2" - checksum: 098ed02b44ac70dbe341ca3560acdd0ae46c54edb8a1134f743d5fa56bf983b5f4ea085b8c5187314c23ac51e51e1ca6c735aaaa3ee17d79f0395b23baf042a0 - languageName: node - linkType: hard - -"@changesets/types@npm:^6.0.0": - version: 6.0.0 - resolution: "@changesets/types@npm:6.0.0" - checksum: d528b5d712f62c26ea422c7d34ccf6eac57a353c0733d96716db3c796ecd9bba5d496d48b37d5d46b784dc45b69c06ce3345fa3515df981bb68456cad68e6465 - languageName: node - linkType: hard - -"@changesets/write@npm:^0.3.2": - version: 0.3.2 - resolution: "@changesets/write@npm:0.3.2" - dependencies: - "@changesets/types": ^6.0.0 - fs-extra: ^7.0.1 - human-id: ^1.0.2 - prettier: ^2.7.1 - checksum: 553ed0ba6bd6397784f5e0e2921794bd7417a3c4fb810f1abb15e7072bf9d312af74308ff743161c6ea01478884cebcaf9cee02e5c70e2c7552b2774960ee07c - languageName: node - linkType: hard - "@codemirror/autocomplete@npm:^6.0.0, @codemirror/autocomplete@npm:^6.4.0": version: 6.16.0 resolution: "@codemirror/autocomplete@npm:6.16.0" @@ -3447,32 +3213,6 @@ __metadata: languageName: node linkType: hard -"@manypkg/find-root@npm:^1.1.0": - version: 1.1.0 - resolution: "@manypkg/find-root@npm:1.1.0" - dependencies: - "@babel/runtime": ^7.5.5 - "@types/node": ^12.7.1 - find-up: ^4.1.0 - fs-extra: ^8.1.0 - checksum: f0fd881a5a81a351cb6561cd24117e8ee9481bbf3b6d1c7d9d10bef1f4744ca2ba3d064713e83c0a0574416d1e5b4a4c6c414aad91913c4a1c6040d87283ac50 - languageName: node - linkType: hard - -"@manypkg/get-packages@npm:^1.1.3": - version: 1.1.3 - resolution: "@manypkg/get-packages@npm:1.1.3" - dependencies: - "@babel/runtime": ^7.5.5 - "@changesets/types": ^4.0.1 - "@manypkg/find-root": ^1.1.0 - fs-extra: ^8.1.0 - globby: ^11.0.0 - read-yaml-file: ^1.1.0 - checksum: f5a756e5a659e0e1c33f48852d56826d170d5b10a3cdea89ce4fcaa77678d8799aa4004b30e1985c87b73dbc390b95bb6411b78336dd1e0db87c08c74b5c0e74 - languageName: node - linkType: hard - "@mdx-js/mdx@npm:^2.3.0": version: 2.3.0 resolution: "@mdx-js/mdx@npm:2.3.0" @@ -6294,13 +6034,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^12.7.1": - version: 12.20.14 - resolution: "@types/node@npm:12.20.14" - checksum: 66560d441240f968d0e8d668f7c52441b892e661d35833af01d8c43b05ebffce963f8f7454b00b259bf719782ffefad21a674a5b52637e4f21df58b8104ed280 - languageName: node - linkType: hard - "@types/offscreencanvas@npm:^2019.6.4": version: 2019.7.0 resolution: "@types/offscreencanvas@npm:2019.7.0" @@ -7069,7 +6802,7 @@ __metadata: languageName: node linkType: hard -"ansi-colors@npm:^4.1.1, ansi-colors@npm:^4.1.3": +"ansi-colors@npm:^4.1.1": version: 4.1.3 resolution: "ansi-colors@npm:4.1.3" checksum: a9c2ec842038a1fabc7db9ece7d3177e2fe1c5dc6f0c51ecfbf5f39911427b89c00b5dc6b8bd95f82a26e9b16aaae2e83d45f060e98070ce4d1333038edceb0e @@ -7670,15 +7403,6 @@ __metadata: languageName: node linkType: hard -"better-path-resolve@npm:1.0.0": - version: 1.0.0 - resolution: "better-path-resolve@npm:1.0.0" - dependencies: - is-windows: ^1.0.0 - checksum: 5392dbe04e7fe68b944eb37961d9dfa147aaac3ee9ee3f6e13d42e2c9fbe949e68d16e896c14ee9016fa5f8e6e53ec7fd8b5f01b50a32067a7d94ac9cfb9a050 - languageName: node - linkType: hard - "bidi-js@npm:^1.0.2": version: 1.0.2 resolution: "bidi-js@npm:1.0.2" @@ -8097,13 +7821,6 @@ __metadata: languageName: node linkType: hard -"chardet@npm:^0.7.0": - version: 0.7.0 - resolution: "chardet@npm:0.7.0" - checksum: 6fd5da1f5d18ff5712c1e0aed41da200d7c51c28f11b36ee3c7b483f3696dabc08927fc6b227735eb8f0e1215c9a8abd8154637f3eff8cada5959df7f58b024d - languageName: node - linkType: hard - "check-more-types@npm:2.24.0, check-more-types@npm:^2.24.0": version: 2.24.0 resolution: "check-more-types@npm:2.24.0" @@ -8188,7 +7905,7 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^3.2.0, ci-info@npm:^3.7.0": +"ci-info@npm:^3.2.0": version: 3.9.0 resolution: "ci-info@npm:3.9.0" checksum: 6b19dc9b2966d1f8c2041a838217299718f15d6c4b63ae36e4674edd2bee48f780e94761286a56aa59eb305a85fbea4ddffb7630ec063e7ec7e7e5ad42549a87 @@ -8753,17 +8470,6 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^5.1.0": - version: 5.1.0 - resolution: "cross-spawn@npm:5.1.0" - dependencies: - lru-cache: ^4.0.1 - shebang-command: ^1.2.0 - which: ^1.2.9 - checksum: 726939c9954fc70c20e538923feaaa33bebc253247d13021737c3c7f68cdc3e0a57f720c0fe75057c0387995349f3f12e20e9bfdbf12274db28019c7ea4ec166 - languageName: node - linkType: hard - "cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.1, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": version: 7.0.3 resolution: "cross-spawn@npm:7.0.3" @@ -9164,13 +8870,6 @@ __metadata: languageName: node linkType: hard -"detect-indent@npm:^6.0.0": - version: 6.1.0 - resolution: "detect-indent@npm:6.1.0" - checksum: ab953a73c72dbd4e8fc68e4ed4bfd92c97eb6c43734af3900add963fd3a9316f3bc0578b018b24198d4c31a358571eff5f0656e81a1f3b9ad5c547d58b2d093d - languageName: node - linkType: hard - "detect-libc@npm:^1.0.3": version: 1.0.3 resolution: "detect-libc@npm:1.0.3" @@ -9410,7 +9109,7 @@ __metadata: languageName: node linkType: hard -"enquirer@npm:^2.3.0, enquirer@npm:^2.3.6": +"enquirer@npm:^2.3.6": version: 2.3.6 resolution: "enquirer@npm:2.3.6" dependencies: @@ -10708,24 +10407,6 @@ __metadata: languageName: node linkType: hard -"extendable-error@npm:^0.1.5": - version: 0.1.7 - resolution: "extendable-error@npm:0.1.7" - checksum: 80478be7429a1675d2085f701239796bab3230ed6f2fb1b138fbabec24bea6516b7c5ceb6e9c209efcc9c089948d93715703845653535f8e8a49655066a9255e - languageName: node - linkType: hard - -"external-editor@npm:^3.1.0": - version: 3.1.0 - resolution: "external-editor@npm:3.1.0" - dependencies: - chardet: ^0.7.0 - iconv-lite: ^0.4.24 - tmp: ^0.0.33 - checksum: 1c2a616a73f1b3435ce04030261bed0e22d4737e14b090bb48e58865da92529c9f2b05b893de650738d55e692d071819b45e1669259b2b354bc3154d27a698c7 - languageName: node - linkType: hard - "extract-zip@npm:2.0.1": version: 2.0.1 resolution: "extract-zip@npm:2.0.1" @@ -11133,17 +10814,6 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^7.0.1": - version: 7.0.1 - resolution: "fs-extra@npm:7.0.1" - dependencies: - graceful-fs: ^4.1.2 - jsonfile: ^4.0.0 - universalify: ^0.1.0 - checksum: 141b9dccb23b66a66cefdd81f4cda959ff89282b1d721b98cea19ba08db3dcbe6f862f28841f3cf24bb299e0b7e6c42303908f65093cb7e201708e86ea5a8dcf - languageName: node - linkType: hard - "fs-extra@npm:^8.1.0": version: 8.1.0 resolution: "fs-extra@npm:8.1.0" @@ -11482,7 +11152,7 @@ __metadata: languageName: node linkType: hard -"globby@npm:^11.0.0, globby@npm:^11.1.0": +"globby@npm:^11.1.0": version: 11.1.0 resolution: "globby@npm:11.1.0" dependencies: @@ -11526,7 +11196,7 @@ __metadata: languageName: node linkType: hard -"graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.3, graceful-fs@npm:^4.1.5, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": +"graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.3, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": version: 4.2.9 resolution: "graceful-fs@npm:4.2.9" checksum: 68ea4e07ff2c041ada184f9278b830375f8e0b75154e3f080af6b70f66172fabb4108d19b3863a96b53fc068a310b9b6493d86d1291acc5f3861eb4b79d26ad6 @@ -11986,13 +11656,6 @@ __metadata: languageName: node linkType: hard -"human-id@npm:^1.0.2": - version: 1.0.2 - resolution: "human-id@npm:1.0.2" - checksum: 95ee57ffae849f008e2ef3fe6e437be8c999861b4256f18c3b194c8928670a8a149e0576917105d5fd77e5edbb621c5a4736fade20bb7bf130113c1ebc95cb74 - languageName: node - linkType: hard - "human-signals@npm:^1.1.1": version: 1.1.1 resolution: "human-signals@npm:1.1.1" @@ -12025,7 +11688,7 @@ __metadata: languageName: node linkType: hard -"iconv-lite@npm:0.4.24, iconv-lite@npm:^0.4.24": +"iconv-lite@npm:0.4.24": version: 0.4.24 resolution: "iconv-lite@npm:0.4.24" dependencies: @@ -12641,15 +12304,6 @@ __metadata: languageName: node linkType: hard -"is-subdir@npm:^1.1.1": - version: 1.2.0 - resolution: "is-subdir@npm:1.2.0" - dependencies: - better-path-resolve: 1.0.0 - checksum: 31029a383972bff4cc4f1bd1463fd04dde017e0a04ae3a6f6e08124a90c6c4656312d593101b0f38805fa3f3c8f6bc4583524bbf72c50784fa5ca0d3e5a76279 - languageName: node - linkType: hard - "is-symbol@npm:^1.0.2, is-symbol@npm:^1.0.3": version: 1.0.4 resolution: "is-symbol@npm:1.0.4" @@ -12717,13 +12371,6 @@ __metadata: languageName: node linkType: hard -"is-windows@npm:^1.0.0": - version: 1.0.2 - resolution: "is-windows@npm:1.0.2" - checksum: 438b7e52656fe3b9b293b180defb4e448088e7023a523ec21a91a80b9ff8cdb3377ddb5b6e60f7c7de4fa8b63ab56e121b6705fe081b3cf1b828b0a380009ad7 - languageName: node - linkType: hard - "is-wsl@npm:^1.1.0": version: 1.1.0 resolution: "is-wsl@npm:1.1.0" @@ -13415,7 +13062,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^3.13.1, js-yaml@npm:^3.6.1": +"js-yaml@npm:^3.13.1": version: 3.14.1 resolution: "js-yaml@npm:3.14.1" dependencies: @@ -14067,16 +13714,6 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:^4.0.1": - version: 4.1.5 - resolution: "lru-cache@npm:4.1.5" - dependencies: - pseudomap: ^1.0.2 - yallist: ^2.1.2 - checksum: 4bb4b58a36cd7dc4dcec74cbe6a8f766a38b7426f1ff59d4cf7d82a2aa9b9565cd1cb98f6ff60ce5cd174524868d7bc9b7b1c294371851356066ca9ac4cf135a - languageName: node - linkType: hard - "lru-cache@npm:^5.1.1": version: 5.1.1 resolution: "lru-cache@npm:5.1.1" @@ -15561,7 +15198,7 @@ __metadata: languageName: node linkType: hard -"micromatch@npm:^4.0.2, micromatch@npm:^4.0.4, micromatch@npm:^4.0.5": +"micromatch@npm:^4.0.4, micromatch@npm:^4.0.5": version: 4.0.8 resolution: "micromatch@npm:4.0.8" dependencies: @@ -16271,13 +15908,6 @@ __metadata: languageName: node linkType: hard -"os-tmpdir@npm:~1.0.2": - version: 1.0.2 - resolution: "os-tmpdir@npm:1.0.2" - checksum: 5666560f7b9f10182548bf7013883265be33620b1c1b4a4d405c25be2636f970c5488ff3e6c48de75b55d02bde037249fe5dbfbb4c0fb7714953d56aed062e6d - languageName: node - linkType: hard - "ospath@npm:^1.2.2": version: 1.2.2 resolution: "ospath@npm:1.2.2" @@ -16285,13 +15915,6 @@ __metadata: languageName: node linkType: hard -"outdent@npm:^0.5.0": - version: 0.5.0 - resolution: "outdent@npm:0.5.0" - checksum: 6e6c63dd09e9890e67ef9a0b4d35df0b0b850b2059ce3f7e19e4cc1a146b26dc5d8c45df238dbf187dfffc8bd82cd07d37c697544015680bcb9f07f29a36c678 - languageName: node - linkType: hard - "outdent@npm:^0.8.0": version: 0.8.0 resolution: "outdent@npm:0.8.0" @@ -16313,15 +15936,6 @@ __metadata: languageName: node linkType: hard -"p-filter@npm:^2.1.0": - version: 2.1.0 - resolution: "p-filter@npm:2.1.0" - dependencies: - p-map: ^2.0.0 - checksum: 76e552ca624ce2233448d68b19eec9de42b695208121998f7e011edce71d1079a83096ee6a2078fb2a59cfa8a5c999f046edf00ebf16a8e780022010b4693234 - languageName: node - linkType: hard - "p-limit@npm:^2.0.0, p-limit@npm:^2.2.0": version: 2.3.0 resolution: "p-limit@npm:2.3.0" @@ -16385,13 +15999,6 @@ __metadata: languageName: node linkType: hard -"p-map@npm:^2.0.0": - version: 2.1.0 - resolution: "p-map@npm:2.1.0" - checksum: 9e3ad3c9f6d75a5b5661bcad78c91f3a63849189737cd75e4f1225bf9ac205194e5c44aac2ef6f09562b1facdb9bd1425584d7ac375bfaa17b3f1a142dab936d - languageName: node - linkType: hard - "p-map@npm:^4.0.0": version: 4.0.0 resolution: "p-map@npm:4.0.0" @@ -16415,13 +16022,6 @@ __metadata: languageName: node linkType: hard -"package-manager-detector@npm:^0.2.0": - version: 0.2.2 - resolution: "package-manager-detector@npm:0.2.2" - checksum: acc0d5a8b6b2a265474c1bac2b3569b6e57fe13db4d764b75cf5fcd11463a44f0ce00bb5dc439a78a1999993780385f431d36ceea51b51a35ce40d512b7388c6 - languageName: node - linkType: hard - "pako@npm:~0.2.0": version: 0.2.9 resolution: "pako@npm:0.2.9" @@ -17135,13 +16735,6 @@ __metadata: languageName: node linkType: hard -"pseudomap@npm:^1.0.2": - version: 1.0.2 - resolution: "pseudomap@npm:1.0.2" - checksum: 856c0aae0ff2ad60881168334448e898ad7a0e45fe7386d114b150084254c01e200c957cf378378025df4e052c7890c5bd933939b0e0d2ecfcc1dc2f0b2991f5 - languageName: node - linkType: hard - "psl@npm:^1.1.33": version: 1.9.0 resolution: "psl@npm:1.9.0" @@ -17534,7 +17127,6 @@ __metadata: version: 0.0.0-use.local resolution: "react-spring--root@workspace:." dependencies: - "@changesets/cli": 2.27.9 "@commitlint/cli": 19.5.0 "@commitlint/config-conventional": 19.5.0 "@react-three/fiber": 8.17.10 @@ -17682,18 +17274,6 @@ __metadata: languageName: node linkType: hard -"read-yaml-file@npm:^1.1.0": - version: 1.1.0 - resolution: "read-yaml-file@npm:1.1.0" - dependencies: - graceful-fs: ^4.1.5 - js-yaml: ^3.6.1 - pify: ^4.0.1 - strip-bom: ^3.0.0 - checksum: 41ee5f075507ef0403328dd54e225a61c3149f915675ce7fd0fd791ddcce2e6c30a9fe0f76ffa7a465c1c157b9b4ad8ded1dcf47dc3b396103eeb013490bbc2e - languageName: node - linkType: hard - "readable-stream@npm:^2.0.0, readable-stream@npm:~2.3.6": version: 2.3.7 resolution: "readable-stream@npm:2.3.7" @@ -18615,15 +18195,6 @@ __metadata: languageName: node linkType: hard -"shebang-command@npm:^1.2.0": - version: 1.2.0 - resolution: "shebang-command@npm:1.2.0" - dependencies: - shebang-regex: ^1.0.0 - checksum: 9eed1750301e622961ba5d588af2212505e96770ec376a37ab678f965795e995ade7ed44910f5d3d3cb5e10165a1847f52d3348c64e146b8be922f7707958908 - languageName: node - linkType: hard - "shebang-command@npm:^2.0.0": version: 2.0.0 resolution: "shebang-command@npm:2.0.0" @@ -18633,13 +18204,6 @@ __metadata: languageName: node linkType: hard -"shebang-regex@npm:^1.0.0": - version: 1.0.0 - resolution: "shebang-regex@npm:1.0.0" - checksum: 404c5a752cd40f94591dfd9346da40a735a05139dac890ffc229afba610854d8799aaa52f87f7e0c94c5007f2c6af55bdcaeb584b56691926c5eaf41dc8f1372 - languageName: node - linkType: hard - "shebang-regex@npm:^3.0.0": version: 3.0.0 resolution: "shebang-regex@npm:3.0.0" @@ -18819,16 +18383,6 @@ __metadata: languageName: node linkType: hard -"spawndamnit@npm:^2.0.0": - version: 2.0.0 - resolution: "spawndamnit@npm:2.0.0" - dependencies: - cross-spawn: ^5.1.0 - signal-exit: ^3.0.2 - checksum: c74b5e264ee5bc13d55692fd422d74c282e4607eb04ac64d19d06796718d89b14921620fa4237ec5635e7acdff21461670ff19850f210225410a353cad0d7fed - languageName: node - linkType: hard - "spdx-correct@npm:^3.0.0": version: 3.1.1 resolution: "spdx-correct@npm:3.1.1" @@ -19470,13 +19024,6 @@ __metadata: languageName: node linkType: hard -"term-size@npm:^2.1.0": - version: 2.2.1 - resolution: "term-size@npm:2.2.1" - checksum: 1ed981335483babc1e8206f843e06bd2bf89b85f0bf5a9a9d928033a0fcacdba183c03ba7d91814643015543ba002f1339f7112402a21da8f24b6c56b062a5a9 - languageName: node - linkType: hard - "terser@npm:^5.15.0": version: 5.16.3 resolution: "terser@npm:5.16.3" @@ -19614,15 +19161,6 @@ __metadata: languageName: node linkType: hard -"tmp@npm:^0.0.33": - version: 0.0.33 - resolution: "tmp@npm:0.0.33" - dependencies: - os-tmpdir: ~1.0.2 - checksum: 902d7aceb74453ea02abbf58c203f4a8fc1cead89b60b31e354f74ed5b3fb09ea817f94fb310f884a5d16987dd9fa5a735412a7c2dd088dd3d415aa819ae3a28 - languageName: node - linkType: hard - "tmp@npm:~0.2.3": version: 0.2.3 resolution: "tmp@npm:0.2.3" @@ -21062,17 +20600,6 @@ __metadata: languageName: node linkType: hard -"which@npm:^1.2.9": - version: 1.3.1 - resolution: "which@npm:1.3.1" - dependencies: - isexe: ^2.0.0 - bin: - which: ./bin/which - checksum: f2e185c6242244b8426c9df1510e86629192d93c1a986a7d2a591f2c24869e7ffd03d6dac07ca863b2e4c06f59a4cc9916c585b72ee9fa1aa609d0124df15e04 - languageName: node - linkType: hard - "which@npm:^2.0.1, which@npm:^2.0.2": version: 2.0.2 resolution: "which@npm:2.0.2" @@ -21257,13 +20784,6 @@ __metadata: languageName: node linkType: hard -"yallist@npm:^2.1.2": - version: 2.1.2 - resolution: "yallist@npm:2.1.2" - checksum: 9ba99409209f485b6fcb970330908a6d41fa1c933f75e08250316cce19383179a6b70a7e0721b89672ebb6199cc377bf3e432f55100da6a7d6e11902b0a642cb - languageName: node - linkType: hard - "yallist@npm:^3.0.2": version: 3.1.1 resolution: "yallist@npm:3.1.1" From f3fd1055c3a2be5cd21b709ce812580ccd2e1074 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 10 Dec 2024 09:27:02 +0000 Subject: [PATCH 2/3] chore: add validate PR title workflow to enforce semantic commits --- .github/workflows/validate-pr.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/validate-pr.yml diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml new file mode 100644 index 0000000000..7722aed7e7 --- /dev/null +++ b/.github/workflows/validate-pr.yml @@ -0,0 +1,16 @@ +name: "Validate PR" + +on: + pull_request: + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 7ad8c7bae340a371fa5bd6ae2fe641edad4c27bd Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 10 Dec 2024 09:33:39 +0000 Subject: [PATCH 3/3] fix(pkg): use correct name for docs package --- .github/workflows/bundle-size.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bundle-size.yml b/.github/workflows/bundle-size.yml index 218135cd88..d9a8e15298 100644 --- a/.github/workflows/bundle-size.yml +++ b/.github/workflows/bundle-size.yml @@ -31,7 +31,7 @@ jobs: run: yarn install --immutable - name: Build packages - run: yarn build --filter=!@react-spring/doc + run: yarn build --filter=!@react-spring/docs - uses: preactjs/compressed-size-action@v2 with: diff --git a/package.json b/package.json index be93d162d8..d9daeab33a 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ ] }, "scripts": { - "build:ci": "turbo run build --filter=!@react-spring/doc", + "build:ci": "turbo run build --filter=!@react-spring/docs", "build": "turbo run build", "changeset": "changeset", "clean": "turbo run clean",