mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 04:22:01 +00:00
[tests] Add cron job to update gatsby fixtures (#9510)
PR to add a cron job and script that automatically updates gatsby fixture versions.
This commit is contained in:
31
.github/workflows/cron-update-gatsby-fixtures.yml
vendored
Normal file
31
.github/workflows/cron-update-gatsby-fixtures.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Cron Update Gatsby Fixtures
|
||||
|
||||
on:
|
||||
# Allow manual runs
|
||||
workflow_dispatch:
|
||||
# Run once a week https://crontab.guru/once-a-week
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
|
||||
jobs:
|
||||
create-pull-request:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
# 0 means fetch all commits so we can commit and push in the script below
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Enable corepack
|
||||
run: corepack enable pnpm
|
||||
- name: Create Pull Request
|
||||
uses: actions/github-script@v6
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
|
||||
# See https://github.com/actions/github-script#run-a-separate-file-with-an-async-function
|
||||
with:
|
||||
github-token: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
|
||||
script: |
|
||||
const script = require('./utils/update-gatsby-fixtures.js')
|
||||
await script({ github, context })
|
||||
17331
packages/static-build/test/fixtures/gatsby-v2/package-lock.json
generated
vendored
Normal file
17331
packages/static-build/test/fixtures/gatsby-v2/package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13606
packages/static-build/test/fixtures/gatsby-v3/package-lock.json
generated
vendored
Normal file
13606
packages/static-build/test/fixtures/gatsby-v3/package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"gatsby": "4.25.2",
|
||||
"gatsby": "4.25.4",
|
||||
"gatsby-plugin-image": "^2.21.0",
|
||||
"gatsby-plugin-manifest": "^4.21.0",
|
||||
"gatsby-plugin-pnpm": "1.2.10",
|
||||
|
||||
238
packages/static-build/test/fixtures/gatsby-v4-pnpm/pnpm-lock.yaml
generated
vendored
238
packages/static-build/test/fixtures/gatsby-v4-pnpm/pnpm-lock.yaml
generated
vendored
@@ -4,7 +4,7 @@ importers:
|
||||
|
||||
.:
|
||||
specifiers:
|
||||
gatsby: 4.25.2
|
||||
gatsby: 4.25.4
|
||||
gatsby-plugin-image: ^2.21.0
|
||||
gatsby-plugin-manifest: ^4.21.0
|
||||
gatsby-plugin-pnpm: 1.2.10
|
||||
@@ -15,13 +15,13 @@ importers:
|
||||
react: ^18.1.0
|
||||
react-dom: ^18.1.0
|
||||
dependencies:
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-plugin-image: 2.25.0_ydhzldbgycgmvbrpalo2wmdfge
|
||||
gatsby-plugin-manifest: 4.25.0_gatsby@4.25.2
|
||||
gatsby-plugin-pnpm: 1.2.10_gatsby@4.25.2
|
||||
gatsby-plugin-sharp: 4.25.0_gatsby@4.25.2
|
||||
gatsby-source-filesystem: 4.25.0_gatsby@4.25.2
|
||||
gatsby-transformer-sharp: 4.25.0_6zi7tjmr4qfzq3ejpz7sb2ox7u
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-plugin-image: 2.25.0_xaovy7gaxklfiuhcegdtqnpnhi
|
||||
gatsby-plugin-manifest: 4.25.0_gatsby@4.25.4
|
||||
gatsby-plugin-pnpm: 1.2.10_gatsby@4.25.4
|
||||
gatsby-plugin-sharp: 4.25.0_gatsby@4.25.4
|
||||
gatsby-source-filesystem: 4.25.0_gatsby@4.25.4
|
||||
gatsby-transformer-sharp: 4.25.0_c4ebbafybzmh26iep5hpxccrn4
|
||||
prop-types: 15.8.1
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0_react@18.2.0
|
||||
@@ -2330,6 +2330,10 @@ packages:
|
||||
lodash.deburr: 4.1.0
|
||||
dev: false
|
||||
|
||||
/@socket.io/component-emitter/3.1.0:
|
||||
resolution: {integrity: sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==}
|
||||
dev: false
|
||||
|
||||
/@swc/helpers/0.4.14:
|
||||
resolution: {integrity: sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==}
|
||||
dependencies:
|
||||
@@ -2385,10 +2389,6 @@ packages:
|
||||
resolution: {integrity: sha512-20R/mDpKSPWdJs5TOpz3e7zqbeCNuMCPhV7Yndk9KU2Rbij2r5W4RzwDPkzC+2lzUqXYu9rFzTktCBnDjHuNQg==}
|
||||
dev: false
|
||||
|
||||
/@types/component-emitter/1.2.11:
|
||||
resolution: {integrity: sha512-SRXjM+tfsSlA9VuG8hGO2nft2p8zjXCK1VcC6N4NXbBbYbSia9kzCChYQajIjzIqOOOuh5Ock6MmV2oux4jDZQ==}
|
||||
dev: false
|
||||
|
||||
/@types/configstore/2.1.1:
|
||||
resolution: {integrity: sha512-YY+hm3afkDHeSM2rsFXxeZtu0garnusBWNG1+7MknmDWQHqcH2w21/xOU9arJUi8ch4qyFklidANLCu3ihhVwQ==}
|
||||
dev: false
|
||||
@@ -2411,7 +2411,7 @@ packages:
|
||||
resolution: {integrity: sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==}
|
||||
dependencies:
|
||||
'@types/eslint': 8.4.10
|
||||
'@types/estree': 0.0.51
|
||||
'@types/estree': 1.0.0
|
||||
dev: false
|
||||
|
||||
/@types/eslint/7.29.0:
|
||||
@@ -2424,7 +2424,7 @@ packages:
|
||||
/@types/eslint/8.4.10:
|
||||
resolution: {integrity: sha512-Sl/HOqN8NKPmhWo2VBEPm0nvHnu2LL3v9vKo8MEq0EtbJ4eVzGPl41VNPvn5E1i5poMk4/XD8UriLHpJvEP/Nw==}
|
||||
dependencies:
|
||||
'@types/estree': 0.0.51
|
||||
'@types/estree': 1.0.0
|
||||
'@types/json-schema': 7.0.11
|
||||
dev: false
|
||||
|
||||
@@ -2444,7 +2444,7 @@ packages:
|
||||
resolution: {integrity: sha512-ATA/xrS7CZ3A2WCPVY4eKdNpybq56zqlTirnHhhyOztZM/lPxJzusOBI3BsaXbu6FrUluqzvMlI4sZ6BDYMlMg==}
|
||||
dependencies:
|
||||
'@types/minimatch': 5.1.2
|
||||
'@types/node': 8.10.66
|
||||
'@types/node': 18.11.18
|
||||
dev: false
|
||||
|
||||
/@types/http-cache-semantics/4.0.1:
|
||||
@@ -2482,7 +2482,7 @@ packages:
|
||||
/@types/mkdirp/0.5.2:
|
||||
resolution: {integrity: sha512-U5icWpv7YnZYGsN4/cmh3WD2onMY0aJIiTE6+51TwJCttdHvtCYmkBNOobHlXwrJRL0nkH9jH4kD+1FAdMN4Tg==}
|
||||
dependencies:
|
||||
'@types/node': 8.10.66
|
||||
'@types/node': 18.11.18
|
||||
dev: false
|
||||
|
||||
/@types/node-fetch/2.6.2:
|
||||
@@ -2532,7 +2532,7 @@ packages:
|
||||
resolution: {integrity: sha512-YyP+VfeaqAyFmXoTh3HChxOQMyjByRMsHU7kc5KOJkSlXudhMhQIALbYV7rHh/l8d2lX3VUQzprrcAgWdRuU8g==}
|
||||
dependencies:
|
||||
'@types/glob': 5.0.37
|
||||
'@types/node': 8.10.66
|
||||
'@types/node': 18.11.18
|
||||
dev: false
|
||||
|
||||
/@types/scheduler/0.16.2:
|
||||
@@ -3180,7 +3180,7 @@ packages:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/babel-plugin-remove-graphql-queries/4.25.0_b3vlds4jyvbln6bwxmbjhxwmje:
|
||||
/babel-plugin-remove-graphql-queries/4.25.0_7b2zndudfh72txnvkexbyma2ty:
|
||||
resolution: {integrity: sha512-enyqRNRrn7vTG3nwg1V+XhoAJIyUv3ZukQCs5KbHOK+WNDDiGZQzIG+FCiZFACScdZBJWyx7TYRYbOFJZ/KEGg==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
@@ -3190,11 +3190,11 @@ packages:
|
||||
'@babel/core': 7.20.12
|
||||
'@babel/runtime': 7.20.7
|
||||
'@babel/types': 7.20.7
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-core-utils: 3.25.0
|
||||
dev: false
|
||||
|
||||
/babel-plugin-remove-graphql-queries/4.25.0_gatsby@4.25.2:
|
||||
/babel-plugin-remove-graphql-queries/4.25.0_gatsby@4.25.4:
|
||||
resolution: {integrity: sha512-enyqRNRrn7vTG3nwg1V+XhoAJIyUv3ZukQCs5KbHOK+WNDDiGZQzIG+FCiZFACScdZBJWyx7TYRYbOFJZ/KEGg==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
@@ -3203,7 +3203,7 @@ packages:
|
||||
dependencies:
|
||||
'@babel/runtime': 7.20.7
|
||||
'@babel/types': 7.20.7
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-core-utils: 3.25.0
|
||||
dev: false
|
||||
|
||||
@@ -3280,10 +3280,6 @@ packages:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/backo2/1.0.2:
|
||||
resolution: {integrity: sha512-zj6Z6M7Eq+PBZ7PQxl5NT665MvJdAkzp0f60nAJ+sLaSCBPMwVak5ZegFbgVCzFcCJTKFoMizvM5Ld7+JrRJHA==}
|
||||
dev: false
|
||||
|
||||
/balanced-match/1.0.2:
|
||||
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
|
||||
dev: false
|
||||
@@ -3294,11 +3290,6 @@ packages:
|
||||
safe-buffer: 5.2.1
|
||||
dev: false
|
||||
|
||||
/base64-arraybuffer/0.1.4:
|
||||
resolution: {integrity: sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg==}
|
||||
engines: {node: '>= 0.6.0'}
|
||||
dev: false
|
||||
|
||||
/base64-js/1.5.1:
|
||||
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
|
||||
dev: false
|
||||
@@ -3771,10 +3762,6 @@ packages:
|
||||
resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==}
|
||||
dev: false
|
||||
|
||||
/component-emitter/1.3.0:
|
||||
resolution: {integrity: sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==}
|
||||
dev: false
|
||||
|
||||
/compressible/2.0.18:
|
||||
resolution: {integrity: sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==}
|
||||
engines: {node: '>= 0.6'}
|
||||
@@ -3857,7 +3844,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
/cookie-signature/1.0.6:
|
||||
resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=}
|
||||
resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==}
|
||||
dev: false
|
||||
|
||||
/cookie/0.4.2:
|
||||
@@ -4466,43 +4453,39 @@ packages:
|
||||
once: 1.4.0
|
||||
dev: false
|
||||
|
||||
/engine.io-client/4.1.4:
|
||||
resolution: {integrity: sha512-843fqAdKeUMFqKi1sSjnR11tJ4wi8sIefu6+JC1OzkkJBmjtc/gM/rZ53tJfu5Iae/3gApm5veoS+v+gtT0+Fg==}
|
||||
/engine.io-client/6.2.3:
|
||||
resolution: {integrity: sha512-aXPtgF1JS3RuuKcpSrBtimSjYvrbhKW9froICH4s0F3XQWLxsKNxqzG39nnvQZQnva4CMvUK63T7shevxRyYHw==}
|
||||
dependencies:
|
||||
base64-arraybuffer: 0.1.4
|
||||
component-emitter: 1.3.0
|
||||
'@socket.io/component-emitter': 3.1.0
|
||||
debug: 4.3.4
|
||||
engine.io-parser: 4.0.3
|
||||
has-cors: 1.1.0
|
||||
parseqs: 0.0.6
|
||||
parseuri: 0.0.6
|
||||
ws: 7.4.6
|
||||
xmlhttprequest-ssl: 1.6.3
|
||||
yeast: 0.1.2
|
||||
engine.io-parser: 5.0.6
|
||||
ws: 8.2.3
|
||||
xmlhttprequest-ssl: 2.0.0
|
||||
transitivePeerDependencies:
|
||||
- bufferutil
|
||||
- supports-color
|
||||
- utf-8-validate
|
||||
dev: false
|
||||
|
||||
/engine.io-parser/4.0.3:
|
||||
resolution: {integrity: sha512-xEAAY0msNnESNPc00e19y5heTPX4y/TJ36gr8t1voOaNmTojP9b3oK3BbJLFufW2XFPQaaijpFewm2g2Um3uqA==}
|
||||
engines: {node: '>=8.0.0'}
|
||||
dependencies:
|
||||
base64-arraybuffer: 0.1.4
|
||||
/engine.io-parser/5.0.6:
|
||||
resolution: {integrity: sha512-tjuoZDMAdEhVnSFleYPCtdL2GXwVTGtNjoeJd9IhIG3C1xs9uwxqRNEu5WpnDZCaozwVlK/nuQhpodhXSIMaxw==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
dev: false
|
||||
|
||||
/engine.io/4.1.2:
|
||||
resolution: {integrity: sha512-t5z6zjXuVLhXDMiFJPYsPOWEER8B0tIsD3ETgw19S1yg9zryvUfY3Vhtk3Gf4sihw/bQGIqQ//gjvVlu+Ca0bQ==}
|
||||
/engine.io/6.2.1:
|
||||
resolution: {integrity: sha512-ECceEFcAaNRybd3lsGQKas3ZlMVjN3cyWwMP25D2i0zWfyiytVbTpRPa34qrr+FHddtpBVOmq4H/DCv1O0lZRA==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
dependencies:
|
||||
'@types/cookie': 0.4.1
|
||||
'@types/cors': 2.8.13
|
||||
'@types/node': 18.11.18
|
||||
accepts: 1.3.8
|
||||
base64id: 2.0.0
|
||||
cookie: 0.4.2
|
||||
cors: 2.8.5
|
||||
debug: 4.3.4
|
||||
engine.io-parser: 4.0.3
|
||||
ws: 7.4.6
|
||||
engine.io-parser: 5.0.6
|
||||
ws: 8.2.3
|
||||
transitivePeerDependencies:
|
||||
- bufferutil
|
||||
- supports-color
|
||||
@@ -5613,7 +5596,7 @@ packages:
|
||||
'@parcel/transformer-json': 2.6.2_@parcel+core@2.6.2
|
||||
dev: false
|
||||
|
||||
/gatsby-plugin-image/2.25.0_ydhzldbgycgmvbrpalo2wmdfge:
|
||||
/gatsby-plugin-image/2.25.0_xaovy7gaxklfiuhcegdtqnpnhi:
|
||||
resolution: {integrity: sha512-Q1TRjvBF7x50alS22i91rksl7A3g42S0jIdPEQcT9bl8MbFaJiboHGna/jp78nxm9vu4qtUJ1IziRSOu0bgHNQ==}
|
||||
peerDependencies:
|
||||
'@babel/core': ^7.12.3
|
||||
@@ -5628,16 +5611,16 @@ packages:
|
||||
'@babel/runtime': 7.20.7
|
||||
'@babel/traverse': 7.20.12
|
||||
babel-jsx-utils: 1.1.0
|
||||
babel-plugin-remove-graphql-queries: 4.25.0_gatsby@4.25.2
|
||||
babel-plugin-remove-graphql-queries: 4.25.0_gatsby@4.25.4
|
||||
camelcase: 5.3.1
|
||||
chokidar: 3.5.3
|
||||
common-tags: 1.8.2
|
||||
fs-extra: 10.1.0
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-core-utils: 3.25.0
|
||||
gatsby-plugin-sharp: 4.25.0_gatsby@4.25.2
|
||||
gatsby-plugin-utils: 3.19.0_gatsby@4.25.2
|
||||
gatsby-source-filesystem: 4.25.0_gatsby@4.25.2
|
||||
gatsby-plugin-sharp: 4.25.0_gatsby@4.25.4
|
||||
gatsby-plugin-utils: 3.19.0_gatsby@4.25.4
|
||||
gatsby-source-filesystem: 4.25.0_gatsby@4.25.4
|
||||
objectFitPolyfill: 2.3.5
|
||||
prop-types: 15.8.1
|
||||
react: 18.2.0
|
||||
@@ -5647,23 +5630,23 @@ packages:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/gatsby-plugin-manifest/4.25.0_gatsby@4.25.2:
|
||||
/gatsby-plugin-manifest/4.25.0_gatsby@4.25.4:
|
||||
resolution: {integrity: sha512-2n7v+TvhWUMoOJEaeiPDFsf9jvOImKLZpnzxE8e6ZeeoGeDngXSZhkkP3x2UYIknHtZXUUjFJh8BaVBXiB1dSQ==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
gatsby: ^4.0.0-next
|
||||
dependencies:
|
||||
'@babel/runtime': 7.20.7
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-core-utils: 3.25.0
|
||||
gatsby-plugin-utils: 3.19.0_gatsby@4.25.2
|
||||
gatsby-plugin-utils: 3.19.0_gatsby@4.25.4
|
||||
semver: 7.3.8
|
||||
sharp: 0.30.7
|
||||
transitivePeerDependencies:
|
||||
- graphql
|
||||
dev: false
|
||||
|
||||
/gatsby-plugin-page-creator/4.25.0_5nijmeqlgjulq3py6h447sls2a:
|
||||
/gatsby-plugin-page-creator/4.25.0_ikkr2w7n6b7ns22fowdw6fv24e:
|
||||
resolution: {integrity: sha512-plHek7xHSV9l1bLPa1JAnxzBqP7j2ihCPRwpBk/wIJAR8cG65wjAT+Nu8DKpW0+2/MYill84ns1r2m8g0L/7bg==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
@@ -5675,10 +5658,10 @@ packages:
|
||||
chokidar: 3.5.3
|
||||
fs-exists-cached: 1.0.0
|
||||
fs-extra: 10.1.0
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-core-utils: 3.25.0
|
||||
gatsby-page-utils: 2.25.0
|
||||
gatsby-plugin-utils: 3.19.0_5nijmeqlgjulq3py6h447sls2a
|
||||
gatsby-plugin-utils: 3.19.0_ikkr2w7n6b7ns22fowdw6fv24e
|
||||
gatsby-telemetry: 3.25.0
|
||||
globby: 11.1.0
|
||||
lodash: 4.17.21
|
||||
@@ -5688,17 +5671,17 @@ packages:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/gatsby-plugin-pnpm/1.2.10_gatsby@4.25.2:
|
||||
/gatsby-plugin-pnpm/1.2.10_gatsby@4.25.4:
|
||||
resolution: {integrity: sha512-29xjIakNEUY42OBb3wI9Thmawr5EcUUOB3dB8nE51yr/TfKQFCREk+HAOATQHTNedG3VZhgU4wVjl2V3wgOXJA==}
|
||||
peerDependencies:
|
||||
gatsby: ~2.x.x || ~3.x.x || ~4.x.x
|
||||
dependencies:
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
lodash.get: 4.4.2
|
||||
lodash.uniq: 4.5.0
|
||||
dev: false
|
||||
|
||||
/gatsby-plugin-sharp/4.25.0_gatsby@4.25.2:
|
||||
/gatsby-plugin-sharp/4.25.0_gatsby@4.25.4:
|
||||
resolution: {integrity: sha512-8XiSKibQyp6pOFHEkEdRCpoDA3Ywcq5PKftNMExZ51MormT0+WqRC7ynuU+0fzktDTbbSyREvblKa+21Id+rRA==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
@@ -5710,9 +5693,9 @@ packages:
|
||||
debug: 4.3.4
|
||||
filenamify: 4.3.0
|
||||
fs-extra: 10.1.0
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-core-utils: 3.25.0
|
||||
gatsby-plugin-utils: 3.19.0_gatsby@4.25.2
|
||||
gatsby-plugin-utils: 3.19.0_gatsby@4.25.4
|
||||
lodash: 4.17.21
|
||||
probe-image-size: 7.2.3
|
||||
semver: 7.3.8
|
||||
@@ -5722,7 +5705,7 @@ packages:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/gatsby-plugin-typescript/4.25.0_gatsby@4.25.2:
|
||||
/gatsby-plugin-typescript/4.25.0_gatsby@4.25.4:
|
||||
resolution: {integrity: sha512-8BTtiVWuIqIEGx/PBBMWd6FYPgel16hT3js7SMo5oI9K4EPsSxRItgRf41MTJGxRR20EhL4e99g2S8x0v1+odA==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
@@ -5734,13 +5717,13 @@ packages:
|
||||
'@babel/plugin-proposal-optional-chaining': 7.20.7_@babel+core@7.20.12
|
||||
'@babel/preset-typescript': 7.18.6_@babel+core@7.20.12
|
||||
'@babel/runtime': 7.20.7
|
||||
babel-plugin-remove-graphql-queries: 4.25.0_b3vlds4jyvbln6bwxmbjhxwmje
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
babel-plugin-remove-graphql-queries: 4.25.0_7b2zndudfh72txnvkexbyma2ty
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/gatsby-plugin-utils/3.19.0_5nijmeqlgjulq3py6h447sls2a:
|
||||
/gatsby-plugin-utils/3.19.0_gatsby@4.25.4:
|
||||
resolution: {integrity: sha512-EZtvgHSU5NPbEn6a4cfSpEGCQ09SfwbhoybHTJKj1clop86HSwOCV2iH8RbCc+X6jbdgHaSZsfsl7zG1h7DBUw==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
@@ -5750,17 +5733,16 @@ packages:
|
||||
'@babel/runtime': 7.20.7
|
||||
fastq: 1.15.0
|
||||
fs-extra: 10.1.0
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-core-utils: 3.25.0
|
||||
gatsby-sharp: 0.19.0
|
||||
graphql: 15.8.0
|
||||
graphql-compose: 9.0.10_graphql@15.8.0
|
||||
graphql-compose: 9.0.10
|
||||
import-from: 4.0.0
|
||||
joi: 17.7.0
|
||||
mime: 3.0.0
|
||||
dev: false
|
||||
|
||||
/gatsby-plugin-utils/3.19.0_gatsby@4.25.2:
|
||||
/gatsby-plugin-utils/3.19.0_ikkr2w7n6b7ns22fowdw6fv24e:
|
||||
resolution: {integrity: sha512-EZtvgHSU5NPbEn6a4cfSpEGCQ09SfwbhoybHTJKj1clop86HSwOCV2iH8RbCc+X6jbdgHaSZsfsl7zG1h7DBUw==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
@@ -5770,10 +5752,11 @@ packages:
|
||||
'@babel/runtime': 7.20.7
|
||||
fastq: 1.15.0
|
||||
fs-extra: 10.1.0
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-core-utils: 3.25.0
|
||||
gatsby-sharp: 0.19.0
|
||||
graphql-compose: 9.0.10
|
||||
graphql: 15.8.0
|
||||
graphql-compose: 9.0.10_graphql@15.8.0
|
||||
import-from: 4.0.0
|
||||
joi: 17.7.0
|
||||
mime: 3.0.0
|
||||
@@ -5815,7 +5798,7 @@ packages:
|
||||
sharp: 0.30.7
|
||||
dev: false
|
||||
|
||||
/gatsby-source-filesystem/4.25.0_gatsby@4.25.2:
|
||||
/gatsby-source-filesystem/4.25.0_gatsby@4.25.4:
|
||||
resolution: {integrity: sha512-gja4++bPkYpnum4/TxFicr3zRHBArnM2HjT77EE4EuDhdl6qlJYr/heD09LIPN2jdR5gmPwMDjIZnuYZ/6j/aQ==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
@@ -5825,7 +5808,7 @@ packages:
|
||||
chokidar: 3.5.3
|
||||
file-type: 16.5.4
|
||||
fs-extra: 10.1.0
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-core-utils: 3.25.0
|
||||
md5-file: 5.0.0
|
||||
mime: 2.6.0
|
||||
@@ -5855,7 +5838,7 @@ packages:
|
||||
- encoding
|
||||
dev: false
|
||||
|
||||
/gatsby-transformer-sharp/4.25.0_6zi7tjmr4qfzq3ejpz7sb2ox7u:
|
||||
/gatsby-transformer-sharp/4.25.0_c4ebbafybzmh26iep5hpxccrn4:
|
||||
resolution: {integrity: sha512-7aqecTvOUFiNB96ij77UnAGJs7Un0TlkpamG//dSl6Nru9EylGz/NW/Eg0vioQyHLCYdMvd5xO8V3BOHJADsnw==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
peerDependencies:
|
||||
@@ -5866,9 +5849,9 @@ packages:
|
||||
bluebird: 3.7.2
|
||||
common-tags: 1.8.2
|
||||
fs-extra: 10.1.0
|
||||
gatsby: 4.25.2_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-plugin-sharp: 4.25.0_gatsby@4.25.2
|
||||
gatsby-plugin-utils: 3.19.0_gatsby@4.25.2
|
||||
gatsby: 4.25.4_biqbaboplfbrettd7655fr4n2y
|
||||
gatsby-plugin-sharp: 4.25.0_gatsby@4.25.4
|
||||
gatsby-plugin-utils: 3.19.0_gatsby@4.25.4
|
||||
probe-image-size: 7.2.3
|
||||
semver: 7.3.8
|
||||
sharp: 0.30.7
|
||||
@@ -5887,8 +5870,8 @@ packages:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/gatsby/4.25.2_biqbaboplfbrettd7655fr4n2y:
|
||||
resolution: {integrity: sha512-HKSWRdTOK5IBFDDgCKiPXiyszfdTTGZ+pple6My6dQ5a5U+Gn1PpjBIiYj4Me9WJAveQzC7tChsqBVVt7r6few==}
|
||||
/gatsby/4.25.4_biqbaboplfbrettd7655fr4n2y:
|
||||
resolution: {integrity: sha512-4IGQ615FCJi/o9qTvyZeZ4Pr04y+zpmxr531/r8rcJK1fcPC3BFR8QGxCrPNxI4jST/Imu4oRYYhnja/VWBCNg==}
|
||||
engines: {node: '>=14.15.0'}
|
||||
hasBin: true
|
||||
requiresBuild: true
|
||||
@@ -5933,7 +5916,7 @@ packages:
|
||||
babel-plugin-add-module-exports: 1.0.4
|
||||
babel-plugin-dynamic-import-node: 2.3.3
|
||||
babel-plugin-lodash: 3.3.4
|
||||
babel-plugin-remove-graphql-queries: 4.25.0_b3vlds4jyvbln6bwxmbjhxwmje
|
||||
babel-plugin-remove-graphql-queries: 4.25.0_7b2zndudfh72txnvkexbyma2ty
|
||||
babel-preset-gatsby: 2.25.0_cmslh6tfftwpzuhidsdk3oqsoi
|
||||
better-opn: 2.1.1
|
||||
bluebird: 3.7.2
|
||||
@@ -5983,9 +5966,9 @@ packages:
|
||||
gatsby-link: 4.25.0_jrmehtgkntpgvrzvp7eiismjfa
|
||||
gatsby-page-utils: 2.25.0
|
||||
gatsby-parcel-config: 0.16.0_@parcel+core@2.6.2
|
||||
gatsby-plugin-page-creator: 4.25.0_5nijmeqlgjulq3py6h447sls2a
|
||||
gatsby-plugin-typescript: 4.25.0_gatsby@4.25.2
|
||||
gatsby-plugin-utils: 3.19.0_5nijmeqlgjulq3py6h447sls2a
|
||||
gatsby-plugin-page-creator: 4.25.0_ikkr2w7n6b7ns22fowdw6fv24e
|
||||
gatsby-plugin-typescript: 4.25.0_gatsby@4.25.4
|
||||
gatsby-plugin-utils: 3.19.0_ikkr2w7n6b7ns22fowdw6fv24e
|
||||
gatsby-react-router-scroll: 5.25.0_jrmehtgkntpgvrzvp7eiismjfa
|
||||
gatsby-script: 1.10.0_jrmehtgkntpgvrzvp7eiismjfa
|
||||
gatsby-telemetry: 3.25.0
|
||||
@@ -6043,8 +6026,8 @@ packages:
|
||||
shallow-compare: 1.2.2
|
||||
signal-exit: 3.0.7
|
||||
slugify: 1.6.5
|
||||
socket.io: 3.1.2
|
||||
socket.io-client: 3.1.3
|
||||
socket.io: 4.5.4
|
||||
socket.io-client: 4.5.4
|
||||
st: 2.0.0
|
||||
stack-trace: 0.0.10
|
||||
string-similarity: 1.2.2
|
||||
@@ -6345,10 +6328,6 @@ packages:
|
||||
resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==}
|
||||
dev: false
|
||||
|
||||
/has-cors/1.1.0:
|
||||
resolution: {integrity: sha512-g5VNKdkFuUuVCP9gYfDJHjK2nqdQJ7aDLTnycnc2+RvsOQbuLdF5pm7vuE5J76SEBIQjs4kQY/BWq74JUmjbXA==}
|
||||
dev: false
|
||||
|
||||
/has-flag/3.0.0:
|
||||
resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==}
|
||||
engines: {node: '>=4'}
|
||||
@@ -7987,14 +7966,6 @@ packages:
|
||||
parse-path: 7.0.0
|
||||
dev: false
|
||||
|
||||
/parseqs/0.0.6:
|
||||
resolution: {integrity: sha512-jeAGzMDbfSHHA091hr0r31eYfTig+29g3GKKE/PPbEQ65X0lmMwlEoqmhzu0iztID5uJpZsFlUPDP8ThPL7M8w==}
|
||||
dev: false
|
||||
|
||||
/parseuri/0.0.6:
|
||||
resolution: {integrity: sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow==}
|
||||
dev: false
|
||||
|
||||
/parseurl/1.3.3:
|
||||
resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}
|
||||
engines: {node: '>= 0.8'}
|
||||
@@ -9303,51 +9274,44 @@ packages:
|
||||
tslib: 2.4.1
|
||||
dev: false
|
||||
|
||||
/socket.io-adapter/2.1.0:
|
||||
resolution: {integrity: sha512-+vDov/aTsLjViYTwS9fPy5pEtTkrbEKsw2M+oVSoFGw6OD1IpvlV1VPhUzNbofCQ8oyMbdYJqDtGdmHQK6TdPg==}
|
||||
/socket.io-adapter/2.4.0:
|
||||
resolution: {integrity: sha512-W4N+o69rkMEGVuk2D/cvca3uYsvGlMwsySWV447y99gUPghxq42BxqLNMndb+a1mm/5/7NeXVQS7RLa2XyXvYg==}
|
||||
dev: false
|
||||
|
||||
/socket.io-client/3.1.3:
|
||||
resolution: {integrity: sha512-4sIGOGOmCg3AOgGi7EEr6ZkTZRkrXwub70bBB/F0JSkMOUFpA77WsL87o34DffQQ31PkbMUIadGOk+3tx1KGbw==}
|
||||
/socket.io-client/4.5.4:
|
||||
resolution: {integrity: sha512-ZpKteoA06RzkD32IbqILZ+Cnst4xewU7ZYK12aS1mzHftFFjpoMz69IuhP/nL25pJfao/amoPI527KnuhFm01g==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
dependencies:
|
||||
'@types/component-emitter': 1.2.11
|
||||
backo2: 1.0.2
|
||||
component-emitter: 1.3.0
|
||||
'@socket.io/component-emitter': 3.1.0
|
||||
debug: 4.3.4
|
||||
engine.io-client: 4.1.4
|
||||
parseuri: 0.0.6
|
||||
socket.io-parser: 4.0.5
|
||||
engine.io-client: 6.2.3
|
||||
socket.io-parser: 4.2.2
|
||||
transitivePeerDependencies:
|
||||
- bufferutil
|
||||
- supports-color
|
||||
- utf-8-validate
|
||||
dev: false
|
||||
|
||||
/socket.io-parser/4.0.5:
|
||||
resolution: {integrity: sha512-sNjbT9dX63nqUFIOv95tTVm6elyIU4RvB1m8dOeZt+IgWwcWklFDOdmGcfo3zSiRsnR/3pJkjY5lfoGqEe4Eig==}
|
||||
/socket.io-parser/4.2.2:
|
||||
resolution: {integrity: sha512-DJtziuKypFkMMHCm2uIshOYC7QaylbtzQwiMYDuCKy3OPkjLzu4B2vAhTlqipRHHzrI0NJeBAizTK7X+6m1jVw==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
dependencies:
|
||||
'@types/component-emitter': 1.2.11
|
||||
component-emitter: 1.3.0
|
||||
'@socket.io/component-emitter': 3.1.0
|
||||
debug: 4.3.4
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
/socket.io/3.1.2:
|
||||
resolution: {integrity: sha512-JubKZnTQ4Z8G4IZWtaAZSiRP3I/inpy8c/Bsx2jrwGrTbKeVU5xd6qkKMHpChYeM3dWZSO0QACiGK+obhBNwYw==}
|
||||
/socket.io/4.5.4:
|
||||
resolution: {integrity: sha512-m3GC94iK9MfIEeIBfbhJs5BqFibMtkRk8ZpKwG2QwxV0m/eEhPIV4ara6XCF1LWNAus7z58RodiZlAH71U3EhQ==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
dependencies:
|
||||
'@types/cookie': 0.4.1
|
||||
'@types/cors': 2.8.13
|
||||
'@types/node': 18.11.18
|
||||
accepts: 1.3.8
|
||||
base64id: 2.0.0
|
||||
debug: 4.3.4
|
||||
engine.io: 4.1.2
|
||||
socket.io-adapter: 2.1.0
|
||||
socket.io-parser: 4.0.5
|
||||
engine.io: 6.2.1
|
||||
socket.io-adapter: 2.4.0
|
||||
socket.io-parser: 4.2.2
|
||||
transitivePeerDependencies:
|
||||
- bufferutil
|
||||
- supports-color
|
||||
@@ -10297,9 +10261,9 @@ packages:
|
||||
typedarray-to-buffer: 3.1.5
|
||||
dev: false
|
||||
|
||||
/ws/7.4.6:
|
||||
resolution: {integrity: sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==}
|
||||
engines: {node: '>=8.3.0'}
|
||||
/ws/8.2.3:
|
||||
resolution: {integrity: sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
peerDependencies:
|
||||
bufferutil: ^4.0.1
|
||||
utf-8-validate: ^5.0.2
|
||||
@@ -10315,8 +10279,8 @@ packages:
|
||||
engines: {node: '>=8'}
|
||||
dev: false
|
||||
|
||||
/xmlhttprequest-ssl/1.6.3:
|
||||
resolution: {integrity: sha512-3XfeQE/wNkvrIktn2Kf0869fC0BN6UpydVasGIeSm2B1Llihf7/0UfZM+eCkOw3P7bP4+qPgqhm7ZoxuJtFU0Q==}
|
||||
/xmlhttprequest-ssl/2.0.0:
|
||||
resolution: {integrity: sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==}
|
||||
engines: {node: '>=0.4.0'}
|
||||
dev: false
|
||||
|
||||
@@ -10402,10 +10366,6 @@ packages:
|
||||
yargs-parser: 18.1.3
|
||||
dev: false
|
||||
|
||||
/yeast/0.1.2:
|
||||
resolution: {integrity: sha512-8HFIh676uyGYP6wP13R/j6OJ/1HwJ46snpvzE7aHAN3Ryqh2yX6Xox2B4CUmTwwOIzlG3Bs7ocsP5dZH/R1Qbg==}
|
||||
dev: false
|
||||
|
||||
/yocto-queue/0.1.0:
|
||||
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
11212
packages/static-build/test/fixtures/gatsby-v4/package-lock.json
generated
vendored
Normal file
11212
packages/static-build/test/fixtures/gatsby-v4/package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"gatsby": "4.25.2",
|
||||
"gatsby": "4.25.4",
|
||||
"gatsby-plugin-image": "^2.21.0",
|
||||
"gatsby-plugin-manifest": "^4.21.0",
|
||||
"gatsby-plugin-pnpm": "1.2.10",
|
||||
|
||||
20958
packages/static-build/test/fixtures/gatsby-v5-pathPrefix/package-lock.json
generated
vendored
20958
packages/static-build/test/fixtures/gatsby-v5-pathPrefix/package-lock.json
generated
vendored
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,7 @@
|
||||
"clean": "gatsby clean"
|
||||
},
|
||||
"dependencies": {
|
||||
"gatsby": "^5.4.2",
|
||||
"gatsby": "5.7.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
}
|
||||
|
||||
19070
packages/static-build/test/fixtures/gatsby-v5/package-lock.json
generated
vendored
19070
packages/static-build/test/fixtures/gatsby-v5/package-lock.json
generated
vendored
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@
|
||||
"clean": "gatsby clean"
|
||||
},
|
||||
"dependencies": {
|
||||
"gatsby": "^5.4.2",
|
||||
"gatsby": "5.7.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
}
|
||||
|
||||
16
utils/exec.js
vendored
Normal file
16
utils/exec.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
const { execFileSync } = require('node:child_process');
|
||||
|
||||
function exec(cmd, args, opts) {
|
||||
console.log({ input: `${cmd} ${args.join(' ')}` });
|
||||
const output = execFileSync(cmd, args, {
|
||||
encoding: 'utf-8',
|
||||
...opts,
|
||||
}).trim();
|
||||
console.log({ output });
|
||||
console.log();
|
||||
return output;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
exec,
|
||||
};
|
||||
123
utils/update-gatsby-fixtures.js
vendored
Normal file
123
utils/update-gatsby-fixtures.js
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const { exec } = require('./exec');
|
||||
|
||||
const branch = `update/gatsby-fixtures`;
|
||||
|
||||
/**
|
||||
* invoked by ../.github/workflows/cron-test-and-update-gatsby.yml
|
||||
* @param {{ github: ReturnType<import('@actions/github').getOctokit>, context: import('@actions/github').context }} param0 Defined by https://github.com/actions/github-script
|
||||
* @returns
|
||||
*/
|
||||
module.exports = async ({ github, context }) => {
|
||||
exec('git', ['config', '--global', 'user.email', 'infra+release@vercel.com']);
|
||||
exec('git', ['config', '--global', 'user.name', 'vercel-release-bot']);
|
||||
try {
|
||||
// Branch may exist if there's already an existing PR
|
||||
exec('git', ['checkout', branch]);
|
||||
} catch {
|
||||
exec('git', ['checkout', '-b', branch]);
|
||||
}
|
||||
|
||||
const fixturePath = path.join(
|
||||
'..',
|
||||
'packages',
|
||||
'static-build',
|
||||
'test',
|
||||
'fixtures'
|
||||
);
|
||||
const gatsbyFixtures = [
|
||||
'gatsby-v2',
|
||||
'gatsby-v3',
|
||||
'gatsby-v4-pnpm',
|
||||
'gatsby-v4',
|
||||
'gatsby-v5-pathPrefix',
|
||||
'gatsby-v5',
|
||||
];
|
||||
|
||||
let somethingChanged = false;
|
||||
|
||||
for (const fixture of gatsbyFixtures) {
|
||||
const packageJSONPath = path.join(fixturePath, fixture);
|
||||
const packageJSON = JSON.parse(fs.readFileSync(packageJSONPath, 'utf-8'));
|
||||
|
||||
const oldVersion = packageJSON.dependencies.gatsby;
|
||||
|
||||
const versions = exec('npm', [
|
||||
'view',
|
||||
`gatsby@'^${oldVersion}'`,
|
||||
'version',
|
||||
]); // [ "gatsby@5.1.2 '5.1.2'", "gatsby@5.2.0 '5.2.0'" ]
|
||||
const newVersion = versions.split('\n').pop().split(' ')[1]; // takes the version string from the last result of `versions` i.e. '5.2.0'
|
||||
|
||||
if (oldVersion === newVersion) {
|
||||
console.log(
|
||||
`gatsby version ${newVersion} did not change for fixture ${fixture}, skipping update.`
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
somethingChanged = true;
|
||||
|
||||
packageJSON.dependencies.gatsby = newVersion;
|
||||
|
||||
fs.writeFileSync(
|
||||
packageJSONPath,
|
||||
JSON.stringify(packageJSON, null, 2) + '\n',
|
||||
'utf-8'
|
||||
);
|
||||
|
||||
// update lockfiles
|
||||
if (fixture.includes('pnpm')) {
|
||||
exec('pnpm', ['install', '--lockfile-only']);
|
||||
} else {
|
||||
exec('npm', ['install', '--package-lock-only']);
|
||||
}
|
||||
}
|
||||
|
||||
if (somethingChanged) {
|
||||
exec('git', ['add', '-A']);
|
||||
exec('git', ['commit', '-m', branch]);
|
||||
exec('git', ['push', 'origin', branch]);
|
||||
|
||||
const { repo, owner } = context.repo;
|
||||
|
||||
const pulls = await github.rest.pulls.list({
|
||||
owner,
|
||||
repo,
|
||||
state: 'open',
|
||||
head: branch,
|
||||
});
|
||||
|
||||
if (pulls.length === 0) {
|
||||
const pr = await github.rest.pulls.create({
|
||||
owner,
|
||||
repo,
|
||||
head: branch,
|
||||
base: 'main',
|
||||
title: '[tests] Update Gatsby fixture versions',
|
||||
body: 'Automatically generated PR to update Gatsby fixture versions in `@vercel/static-build`',
|
||||
});
|
||||
|
||||
await github.rest.pulls.requestReviewers({
|
||||
owner,
|
||||
repo,
|
||||
pull_number: pr.data.number,
|
||||
reviewers: [
|
||||
'Ethan-Arrowood',
|
||||
'styfle',
|
||||
'TooTallNate',
|
||||
'EndangeredMassa',
|
||||
'cb1kenobi',
|
||||
],
|
||||
});
|
||||
|
||||
await github.rest.issues.addLabels({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: pr.data.number,
|
||||
labels: ['area: tests', 'semver: none', 'pr: automerge'],
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user