Skip to content

Commit 174fdab

Browse files
committed
chore: fix Keystatic app slug and update GitHub Actions versions
1 parent a61573f commit 174fdab

9 files changed

Lines changed: 35 additions & 35 deletions

File tree

‎.github/workflows/deploy-admin.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Check out trusted admin code
26-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
26+
uses: actions/checkout@v7
2727
with:
2828
persist-credentials: false
2929

3030
- name: Set up pnpm
31-
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
31+
uses: pnpm/action-setup@v6
3232

3333
- name: Set up Node.js
34-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
34+
uses: actions/setup-node@v7
3535
with:
3636
node-version: "22"
3737
cache: pnpm
@@ -48,11 +48,11 @@ jobs:
4848
KEYSTATIC_GITHUB_CLIENT_SECRET: build-placeholder
4949
KEYSTATIC_SECRET: 0000000000000000000000000000000000000000000000000000000000000000
5050
NEXT_PUBLIC_KEYSTATIC_STORAGE_KIND: github
51-
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: preferredai-publisher
51+
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: preferredai-keystatic
5252
run: pnpm --filter @preferredai/admin build:worker
5353

5454
- name: Upload Worker bundle
55-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
55+
uses: actions/upload-artifact@v7
5656
with:
5757
name: admin-worker
5858
path: |
@@ -70,13 +70,13 @@ jobs:
7070
url: https://admin.preferred.ai/keystatic
7171
steps:
7272
- name: Download Worker bundle
73-
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
73+
uses: actions/download-artifact@v8
7474
with:
7575
name: admin-worker
7676
path: admin-worker
7777

7878
- name: Deploy editor-only Worker
79-
uses: cloudflare/wrangler-action@9acf94ace14e7dc412b076f2c5c20b8ce93c79cd # v3
79+
uses: cloudflare/wrangler-action@v4
8080
with:
8181
apiToken: ${{ secrets.CLOUDFLARE_WORKERS_API_TOKEN }}
8282
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

‎.github/workflows/deploy-content-preview.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- name: Create repository-scoped publisher token
2727
id: app-token
28-
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
28+
uses: actions/create-github-app-token@v3
2929
with:
3030
app-id: ${{ vars.PREFERREDAI_AUTOMATION_APP_ID }}
3131
private-key: ${{ secrets.PREFERREDAI_AUTOMATION_APP_PRIVATE_KEY }}
@@ -59,7 +59,7 @@ jobs:
5959
echo "number=$pr_number" >> "$GITHUB_OUTPUT"
6060
6161
- name: Check out trusted publishing policy
62-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
62+
uses: actions/checkout@v7
6363
with:
6464
ref: ${{ github.event.repository.default_branch }}
6565
path: policy
@@ -97,7 +97,7 @@ jobs:
9797
exit 1
9898
9999
- name: Download validated static artifact
100-
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
100+
uses: actions/download-artifact@v8
101101
with:
102102
name: test-static-export
103103
path: preview
@@ -126,7 +126,7 @@ jobs:
126126
127127
- name: Deploy isolated Pages preview
128128
id: pages
129-
uses: cloudflare/wrangler-action@9acf94ace14e7dc412b076f2c5c20b8ce93c79cd # v3
129+
uses: cloudflare/wrangler-action@v4
130130
with:
131131
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN || secrets.CLOUDFLARE_API_TOKEN }}
132132
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
@@ -147,7 +147,7 @@ jobs:
147147
esac
148148
149149
- name: Comment preview URL
150-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
150+
uses: actions/github-script@v9
151151
env:
152152
PREVIEW_URL: ${{ steps.pages.outputs.pages-deployment-alias-url || steps.pages.outputs.deployment-url }}
153153
PR_NUMBER: ${{ steps.pr.outputs.number }}

‎.github/workflows/nextjs.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
site_sha: ${{ steps.revision.outputs.sha }}
3131
steps:
3232
- name: Check out website revision
33-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
33+
uses: actions/checkout@v7
3434
with:
3535
ref: ${{ inputs.site_ref || github.sha }}
3636
persist-credentials: false
@@ -40,10 +40,10 @@ jobs:
4040
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
4141

4242
- name: Set up pnpm
43-
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
43+
uses: pnpm/action-setup@v6
4444

4545
- name: Set up Node.js
46-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
46+
uses: actions/setup-node@v7
4747
with:
4848
node-version: "22"
4949
cache: pnpm
@@ -52,7 +52,7 @@ jobs:
5252
run: pnpm install --frozen-lockfile
5353

5454
- name: Restore generated-image cache
55-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
55+
uses: actions/cache@v6
5656
with:
5757
path: |
5858
public/optimized
@@ -71,7 +71,7 @@ jobs:
7171
run: pnpm build:prepared
7272

7373
- name: Upload static export
74-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
74+
uses: actions/upload-artifact@v7
7575
with:
7676
name: static-export
7777
path: out
@@ -86,7 +86,7 @@ jobs:
8686
url: https://preferred.ai
8787
steps:
8888
- name: Download static export
89-
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
89+
uses: actions/download-artifact@v8
9090
with:
9191
name: static-export
9292
path: out
@@ -125,7 +125,7 @@ jobs:
125125
126126
- name: Deploy to Cloudflare Pages production
127127
if: github.event_name == 'workflow_dispatch' || steps.freshness.outputs.current == 'true'
128-
uses: cloudflare/wrangler-action@9acf94ace14e7dc412b076f2c5c20b8ce93c79cd # v3
128+
uses: cloudflare/wrangler-action@v4
129129
with:
130130
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN || secrets.CLOUDFLARE_API_TOKEN }}
131131
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

‎.github/workflows/publish-keystatic.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- name: Create repository-scoped publisher token
3030
id: app-token
31-
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
31+
uses: actions/create-github-app-token@v3
3232
with:
3333
app-id: ${{ vars.PREFERREDAI_AUTOMATION_APP_ID }}
3434
private-key: ${{ secrets.PREFERREDAI_AUTOMATION_APP_PRIVATE_KEY }}
@@ -38,7 +38,7 @@ jobs:
3838
permission-pull-requests: write
3939

4040
- name: Checkout trusted publisher code
41-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
41+
uses: actions/checkout@v7
4242
with:
4343
ref: ${{ github.event.repository.default_branch }}
4444
persist-credentials: false

‎.github/workflows/test-build.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
PREFERREDAI_NOINDEX: ${{ startsWith(github.head_ref || github.ref_name, 'keystatic/') && 'true' || 'false' }}
2020
steps:
2121
- name: Check out proposed revision
22-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
22+
uses: actions/checkout@v7
2323
with:
2424
persist-credentials: false
2525

2626
- name: Set up pnpm
27-
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
27+
uses: pnpm/action-setup@v6
2828

2929
- name: Set up Node.js
30-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
30+
uses: actions/setup-node@v7
3131
with:
3232
node-version: "22"
3333
cache: pnpm
@@ -36,7 +36,7 @@ jobs:
3636
run: pnpm install --frozen-lockfile
3737

3838
- name: Restore generated-image cache
39-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
39+
uses: actions/cache@v6
4040
with:
4141
path: |
4242
public/optimized
@@ -68,11 +68,11 @@ jobs:
6868
KEYSTATIC_GITHUB_CLIENT_SECRET: build-placeholder
6969
KEYSTATIC_SECRET: 0000000000000000000000000000000000000000000000000000000000000000
7070
NEXT_PUBLIC_KEYSTATIC_STORAGE_KIND: github
71-
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: preferredai-publisher
71+
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: preferredai-keystatic
7272
run: pnpm --filter @preferredai/admin build:worker
7373

7474
- name: Upload static export
75-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
75+
uses: actions/upload-artifact@v7
7676
with:
7777
name: test-static-export
7878
path: out

‎.github/workflows/update-publications.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
25+
uses: actions/checkout@v7
2626
with:
2727
ssh-key: ${{ secrets.DEPLOY_KEY }}
2828
fetch-depth: 0
2929

3030
- name: Setup pnpm
31-
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
31+
uses: pnpm/action-setup@v6
3232

3333
- name: Setup Node
34-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
34+
uses: actions/setup-node@v7
3535
with:
3636
node-version: "22"
3737
cache: pnpm

‎.github/workflows/update-team-photos.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
25+
uses: actions/checkout@v7
2626
with:
2727
ssh-key: ${{ secrets.DEPLOY_KEY }}
2828
fetch-depth: 0
2929

3030
- name: Setup pnpm
31-
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
31+
uses: pnpm/action-setup@v6
3232

3333
- name: Setup Node
34-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
34+
uses: actions/setup-node@v7
3535
with:
3636
node-version: "22"
3737
cache: pnpm

‎apps/admin/.env.example‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ NEXT_PUBLIC_KEYSTATIC_STORAGE_KIND=github
22
KEYSTATIC_GITHUB_CLIENT_ID=
33
KEYSTATIC_GITHUB_CLIENT_SECRET=
44
KEYSTATIC_SECRET=
5-
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG=preferredai-publisher
5+
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG=preferredai-keystatic

‎apps/admin/wrangler.jsonc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"vars": {
1515
"NEXT_PUBLIC_KEYSTATIC_STORAGE_KIND": "github",
16-
"NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG": "preferredai-publisher"
16+
"NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG": "preferredai-keystatic"
1717
},
1818
"assets": {
1919
"binding": "ASSETS",

0 commit comments

Comments
 (0)