diff --git a/.github/actions/sync-data/action.yml b/.github/actions/sync-data/action.yml index 3a15d0230f..04480c0049 100644 --- a/.github/actions/sync-data/action.yml +++ b/.github/actions/sync-data/action.yml @@ -9,5 +9,5 @@ inputs: project-stats: description: 'true/false - determines whether to fetch and sync the project-stats data' runs: - using: 'node16' + using: 'node18' main: 'dist/index.js' diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4bdd9b4619..bf17721967 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Cache node_modules id: cache-node @@ -110,7 +110,7 @@ jobs: - name: Setup node uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Cache node_modules id: cache-node @@ -156,7 +156,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Cache node_modules id: cache-node diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d09d223817..b2608de2ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Download Cached Deps id: cache-node-modules @@ -138,7 +138,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Install dependencies run: yarn install --frozen-lockfile diff --git a/.github/workflows/trigger-netlify-build.yml b/.github/workflows/trigger-netlify-build.yml new file mode 100644 index 0000000000..69d2a5f6cd --- /dev/null +++ b/.github/workflows/trigger-netlify-build.yml @@ -0,0 +1,29 @@ +name: Trigger Netlify Build + +on: + issue_comment: + types: [created] + +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - name: deploy to preview mode + if: contains(github.event.comment.body, 'netlify build') + uses: thundermiracle/netlify-deploy@v3 + with: + node: 20 + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN}} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID}} + deploy-dir: './public' + extra-cache-path: | + .cache + public + + - name: Comment for Netlify to update with preview URL + uses: thollander/actions-comment-pull-request@v2 + with: + message: | + > Netlify Preview Deployment Information + + > This comment will auto update when your preview build is ready! diff --git a/.nvmrc b/.nvmrc index b6a7d89c68..3c032078a4 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 +18 diff --git a/CHANGELOG.md b/CHANGELOG.md index 61ffdfdf78..11800650c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,67 @@ +# [1.27.0](https://github.com/newrelic/opensource-website/compare/v1.26.7...v1.27.0) (2024-02-02) + + +### Features + +* add netlify.toml and `gatsby-plugin-netlify` ([aff629d](https://github.com/newrelic/opensource-website/commit/aff629dc81bdf9af18943e44036d7d8c424295f4)) + +## [1.26.7](https://github.com/newrelic/opensource-website/compare/v1.26.6...v1.26.7) (2024-02-01) + + +### Bug Fixes + +* update workflow to add comment to PR ([99a5dc6](https://github.com/newrelic/opensource-website/commit/99a5dc6ebc4129329eb27536f7153b8edb8a09dc)) + +## [1.26.6](https://github.com/newrelic/opensource-website/compare/v1.26.5...v1.26.6) (2024-01-31) + + +### Bug Fixes + +* actually it should be node 20 ([6569623](https://github.com/newrelic/opensource-website/commit/65696238a1c7f46e864894403395342419cec3bb)) + +## [1.26.5](https://github.com/newrelic/opensource-website/compare/v1.26.4...v1.26.5) (2024-01-31) + + +### Bug Fixes + +* update node version for workflow to node 16 ([1e5e5ae](https://github.com/newrelic/opensource-website/commit/1e5e5aeafce5fffab5f86dfe5b54a3d80383fdd0)) + +## [1.26.4](https://github.com/newrelic/opensource-website/compare/v1.26.3...v1.26.4) (2024-01-31) + + +### Bug Fixes + +* update node version for workflow to node 16 ([92aa3fa](https://github.com/newrelic/opensource-website/commit/92aa3faad5db900bff40852e38a82c102bb0fcb2)) + +## [1.26.3](https://github.com/newrelic/opensource-website/compare/v1.26.2...v1.26.3) (2024-01-31) + + +### Bug Fixes + +* update theme version ([de86c5a](https://github.com/newrelic/opensource-website/commit/de86c5a660ae8ed9c3eb3e3262974d9ed3ad2425)) + +## [1.26.2](https://github.com/newrelic/opensource-website/compare/v1.26.1...v1.26.2) (2024-01-30) + + +### Bug Fixes + +* update action yaml formatting ([4dadfa7](https://github.com/newrelic/opensource-website/commit/4dadfa781c132f4be57b43f2d5ca37cb670c9e5c)) +* update yaml formatting again ([4f58389](https://github.com/newrelic/opensource-website/commit/4f58389f412cd8228f4b367126ca966c6e6534e8)) + +## [1.26.1](https://github.com/newrelic/opensource-website/compare/v1.26.0...v1.26.1) (2024-01-30) + + +### Bug Fixes + +* fix workflow ([29d5617](https://github.com/newrelic/opensource-website/commit/29d56173bc2eb149c0d3b93510057c6722a78094)) + +# [1.26.0](https://github.com/newrelic/opensource-website/compare/v1.25.0...v1.26.0) (2024-01-30) + + +### Features + +* add test workflow ([b0aceaa](https://github.com/newrelic/opensource-website/commit/b0aceaa54004d7fb1559bc9efc9803d0c114e596)) + # [1.25.0](https://github.com/newrelic/opensource-website/compare/v1.24.10...v1.25.0) (2024-01-25) diff --git a/gatsby-config.js b/gatsby-config.js index e57585c559..ac10bc824b 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -160,6 +160,7 @@ module.exports = { extensions: [`.mdx`, `.md`], }, }, + 'gatsby-plugin-netlify', { resolve: 'gatsby-plugin-gatsby-cloud', options: { diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000000..40cd9dfb4d --- /dev/null +++ b/netlify.toml @@ -0,0 +1,5 @@ +[[plugins]] +package = "@netlify/plugin-gatsby" + +[functions] + included_files = ["!.cache/data/datastore/data.mdb","!.cache/query-engine"] \ No newline at end of file diff --git a/package.json b/package.json index 2e35be46dd..d4938a05aa 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,14 @@ "name": "opensource-website", "private": true, "description": "Data, code, and automation for opensource.newrelic.com", - "version": "1.25.0", + "version": "1.27.0", "author": "Open Source Team at New Relic ", "dependencies": { "@emotion/react": "^11.1.5", "@emotion/styled": "^11.3.0", "@mdx-js/mdx": "^1.6.22", "@mdx-js/react": "^1.6.22", - "@newrelic/gatsby-theme-newrelic": "9.2.8", + "@newrelic/gatsby-theme-newrelic": "9.2.9", "@splitsoftware/splitio-react": "^1.2.4", "date-fns": "^2.17.0", "feather-icons": "^4.28.0", @@ -18,6 +18,7 @@ "gatsby-plugin-gatsby-cloud": "^4.20.0", "gatsby-plugin-manifest": "^4.20.0", "gatsby-plugin-mdx": "^2.8.0", + "gatsby-plugin-netlify": "^5.1.1", "gatsby-plugin-offline": "^4.8.0", "gatsby-plugin-sass": "^5.9.0", "gatsby-plugin-sharp": "^4.20.0", diff --git a/yarn.lock b/yarn.lock index b727044e19..70f684b8dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1487,6 +1487,13 @@ dependencies: regenerator-runtime "^0.13.11" +"@babel/runtime@^7.20.13": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.9.tgz#47791a15e4603bb5f905bc0753801cf21d6345f7" + integrity sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/runtime@^7.3.1": version "7.23.5" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.5.tgz#11edb98f8aeec529b82b211028177679144242db" @@ -2666,10 +2673,10 @@ eslint-plugin-promise "^4.2.1" eslint-plugin-react "^7.14.3" -"@newrelic/gatsby-theme-newrelic@9.2.8": - version "9.2.8" - resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.2.8.tgz#2a0f35b7718b4ce96b4aaada727878ce380b48cd" - integrity sha512-TYOYPRMA8mEfJGjXr0iJeL/7XhaQxFhBSgmN3UoKQtnrZd5LHg4+eDhcws1ST2SJQwyXc59fg662Z8nxNF+15g== +"@newrelic/gatsby-theme-newrelic@9.2.9": + version "9.2.9" + resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.2.9.tgz#c5c28c67255d96a0e2a528bd479e4d71a96394b3" + integrity sha512-e3V2E5Yo90YaSQb8RQ/Dk6yVXXZMll84QytStsNWqZBig43C2QB7IXJWShclzJbARwa1D04kqVVDg5XTapp5yQ== dependencies: "@segment/analytics-next" "1.63.0" "@wry/equality" "^0.4.0" @@ -8527,6 +8534,13 @@ fastq@^1.13.0, fastq@^1.6.0: dependencies: reusify "^1.0.4" +fastq@^1.15.0: + version "1.17.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.0.tgz#ca5e1a90b5e68f97fc8b61330d5819b82f5fab03" + integrity sha512-zGygtijUMT7jnk3h26kUms3BkSDp4IfIKjmnqI2tvx6nuBfiF1UqOxbnLfzdv+apBy+53oaImsKtMw/xYbW+1w== + dependencies: + reusify "^1.0.4" + fb-watchman@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" @@ -8837,6 +8851,15 @@ fs-extra@^10.0.0, fs-extra@^10.1.0: jsonfile "^6.0.1" universalify "^2.0.0" +fs-extra@^11.0.0, fs-extra@^11.1.1: + version "11.2.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.2.0.tgz#e70e17dfad64232287d01929399e0ea7c86b0e5b" + integrity sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + fs-extra@^4.0.2: version "4.0.3" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94" @@ -9013,6 +9036,28 @@ gatsby-core-utils@^3.25.0: tmp "^0.2.1" xdg-basedir "^4.0.0" +gatsby-core-utils@^4.0.0: + version "4.13.1" + resolved "https://registry.yarnpkg.com/gatsby-core-utils/-/gatsby-core-utils-4.13.1.tgz#57955316486cc85ab150922f481484bc9287205e" + integrity sha512-w7G6SsQr8T2q+AJ1MxvRNGocCt+wjc22MiRLj2Zi3Ijpjszbr818JxwI4+aPt8WOSHlKT5SYCHICnEvcYPm9gg== + dependencies: + "@babel/runtime" "^7.20.13" + ci-info "2.0.0" + configstore "^5.0.1" + fastq "^1.15.0" + file-type "^16.5.4" + fs-extra "^11.1.1" + got "^11.8.6" + hash-wasm "^4.9.0" + import-from "^4.0.0" + lmdb "2.5.3" + lock "^1.1.0" + node-object-hash "^2.3.10" + proper-lockfile "^4.1.2" + resolve-from "^5.0.0" + tmp "^0.2.1" + xdg-basedir "^4.0.0" + gatsby-graphiql-explorer@^2.25.0: version "2.25.0" resolved "https://registry.yarnpkg.com/gatsby-graphiql-explorer/-/gatsby-graphiql-explorer-2.25.0.tgz#78fe692009739cbd330b6c10a1cfebcff8301ab8" @@ -9160,6 +9205,18 @@ gatsby-plugin-mdx@^2.8.0: unist-util-remove "^1.0.3" unist-util-visit "^1.4.1" +gatsby-plugin-netlify@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/gatsby-plugin-netlify/-/gatsby-plugin-netlify-5.1.1.tgz#c9497133fca784900df7a80c31c47853fabdcae7" + integrity sha512-CembvYjbP7NJvVIdffqWaBKXMHIxYBKBEoXFGvCKX+8phRNkfmjnvoljoOakv0ypHBpgjgtpa7Nvc3PI+IjB1A== + dependencies: + "@babel/runtime" "^7.16.7" + fs-extra "^11.0.0" + gatsby-core-utils "^4.0.0" + kebab-hash "^0.1.2" + lodash.mergewith "^4.6.2" + webpack-assets-manifest "^5.0.6" + gatsby-plugin-newrelic@^2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/gatsby-plugin-newrelic/-/gatsby-plugin-newrelic-2.4.0.tgz#9361b49db19cbbe4e6f17aa2f81d9c68535f62fe" @@ -9879,7 +9936,7 @@ got@^11.8.2: p-cancelable "^2.0.0" responselike "^2.0.0" -got@^11.8.5: +got@^11.8.5, got@^11.8.6: version "11.8.6" resolved "https://registry.yarnpkg.com/got/-/got-11.8.6.tgz#276e827ead8772eddbcfc97170590b841823233a" integrity sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g== @@ -10070,6 +10127,11 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" +hash-wasm@^4.9.0: + version "4.11.0" + resolved "https://registry.yarnpkg.com/hash-wasm/-/hash-wasm-4.11.0.tgz#7d1479b114c82e48498fdb1d2462a687d00386d5" + integrity sha512-HVusNXlVqHe0fzIzdQOGolnFN6mX/fqcrSAOcTBXdvzrXVHwTz11vXeKRmkR5gTuwVpvHZEIyKoePDvuAR+XwQ== + hasha@^5.2.2: version "5.2.2" resolved "https://registry.yarnpkg.com/hasha/-/hasha-5.2.2.tgz#a48477989b3b327aea3c04f53096d816d97522a1" @@ -12125,6 +12187,11 @@ lodash.merge@^4.4.0, lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== +lodash.mergewith@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz#617121f89ac55f59047c7aec1ccd6654c6590f55" + integrity sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ== + lodash.pick@^4.2.1: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" @@ -17547,7 +17614,7 @@ webidl-conversions@^6.1.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== -webpack-assets-manifest@^5.1.0: +webpack-assets-manifest@^5.0.6, webpack-assets-manifest@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/webpack-assets-manifest/-/webpack-assets-manifest-5.1.0.tgz#5af328f6c8fa760cb9a62af631a83da2b478b791" integrity sha512-kPuTMEjBrqZQVJ5M6yXNBCEdFbQQn7p+loNXt8NOeDFaAbsNFWqqwR0YL1mfG5LbwhK5FLXWXpuK3GuIIZ46rg==