Skip to content

Commit 0898fb0

Browse files
benjaminwhtanclaudeAaronDDM
authored
[TW-7440] fix(ci): replace removed cloudflare/pages-action with wrangler-action (#763)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Aaron de Mello <314152+AaronDDM@users.noreply.github.com>
1 parent e34eb1f commit 0898fb0

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎.github/workflows/sdk-reference.yaml‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
environment:
1313
name: sdk-reference
14-
url: ${{ steps.deploy.outputs.url }}
14+
url: ${{ steps.deploy.outputs.deployment-url }}
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Setup Nodejs
1818
uses: actions/setup-node@v1
1919
with:
20-
node-version: 18.x
20+
node-version: 24.x
2121
- name: Install dependencies and build
2222
run: npm install
2323
- name: Build docs
@@ -32,12 +32,9 @@ jobs:
3232
echo "CLOUDFLARE_BRANCH=$BRANCH" >> "$GITHUB_ENV"
3333
fi
3434
- name: Publish to Cloudflare Pages
35-
uses: cloudflare/pages-action@v1
35+
uses: cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0 # v4.1.3
3636
id: deploy
3737
with:
3838
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3939
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
40-
projectName: nylas-nodejs-sdk-reference
41-
directory: docs
42-
wranglerVersion: "3"
43-
branch: ${{ env.CLOUDFLARE_BRANCH }}
40+
command: pages deploy docs --project-name=nylas-nodejs-sdk-reference --branch=${{ env.CLOUDFLARE_BRANCH }}

0 commit comments

Comments
 (0)