Skip to content

Commit b1f8ce2

Browse files
committed
chore(website): new algolia shared workflows
1 parent ab9e3ad commit b1f8ce2

File tree

7 files changed

+30
-128
lines changed

7 files changed

+30
-128
lines changed

.github/workflows/algolia-integrity.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/algolia-publish.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ jobs:
1919
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
2020
secrets:
2121
githubToken: ${{ secrets.GITHUB_TOKEN }}
22+
23+
algolia:
24+
uses: the-guild-org/shared-config/.github/workflows/algolia-integrity.yml@main
25+
with:
26+
domain: https://www.the-guild.dev/graphql/modules/
27+
source: 'Modules'
28+
secrets:
29+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,14 @@ jobs:
1313
secrets:
1414
githubToken: ${{ secrets.GITHUB_TOKEN }}
1515
npmToken: ${{ secrets.NODE_AUTH_TOKEN }}
16+
17+
algolia:
18+
uses: the-guild-org/shared-config/.github/workflows/algolia-publish.yml@main
19+
secrets:
20+
githubToken: ${{ secrets.GITHUB_TOKEN }}
21+
algoliaAppId: ${{ secrets.ALGOLIA_APP_ID }}
22+
algoliaAdminApiKey: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
23+
algoliaIndexName: ${{ secrets.ALGOLIA_INDEX_NAME }}
24+
with:
25+
domain: https://www.the-guild.dev/graphql/modules/
26+
source: 'Modules'

website/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"algolia-sync": "node scripts/algolia-ci.mjs",
87
"build": "next build && next-sitemap --config next-sitemap.config.cjs ",
98
"dev": "next dev",
109
"next": "next",
@@ -32,7 +31,7 @@
3231
]
3332
},
3433
"devDependencies": {
35-
"@theguild/algolia": "0.1.0",
34+
"@theguild/algolia": "1.0.1",
3635
"@theguild/tailwind-config": "0.1.1",
3736
"@types/node": "18.7.18",
3837
"@types/react": "18.0.21",

website/scripts/algolia-ci.mjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

yarn.lock

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2658,12 +2658,13 @@
26582658
dependencies:
26592659
defer-to-connect "^2.0.0"
26602660

2661-
"@theguild/algolia@0.1.0":
2662-
version "0.1.0"
2663-
resolved "https://registry.yarnpkg.com/@theguild/algolia/-/algolia-0.1.0.tgz#3937ad35df42cde7972137369b2f23f2118eb1f3"
2664-
integrity sha512-bIC4qBUj1U/EOkNx7ncFP9uX3cc8u+rRx3duNQv3eA3NUIAn4VmQsAwPx8kKJwSsUSQ0H2vJAh3RtaG5kSVvHA==
2661+
"@theguild/[email protected].1":
2662+
version "1.0.1"
2663+
resolved "https://registry.yarnpkg.com/@theguild/algolia/-/algolia-1.0.1.tgz#002f638dbcb5be9c4c5ecb827c9f48d1f7c48210"
2664+
integrity sha512-9T57HvRGpylJAwFdLfIoEBDqfNTG7Z0u60j7RLQ1s5wyKcMpMpgnRmw96y7c+50pCeok/NmgsKZyDhUgsyzNDg==
26652665
dependencies:
26662666
algoliasearch "^4.13.1"
2667+
commander "^9.4.1"
26672668
github-slugger "^1.4.0"
26682669
glob "^8.0.3"
26692670
gray-matter "^4.0.3"
@@ -4464,6 +4465,11 @@ commander@^9.3.0:
44644465
resolved "https://registry.yarnpkg.com/commander/-/commander-9.3.0.tgz#f619114a5a2d2054e0d9ff1b31d5ccf89255e26b"
44654466
integrity sha512-hv95iU5uXPbK83mjrJKuZyFM/LBAoCV/XhVGkS5Je6tl7sxr6A0ITMw5WoRV46/UaJ46Nllm3Xt7IaJhXTIkzw==
44664467

4468+
commander@^9.4.1:
4469+
version "9.4.1"
4470+
resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.1.tgz#d1dd8f2ce6faf93147295c0df13c7c21141cfbdd"
4471+
integrity sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==
4472+
44674473
commondir@^1.0.1:
44684474
version "1.0.1"
44694475
resolved "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"

0 commit comments

Comments
 (0)