Skip to content

ci: switch test-deploy workflow from yarn to npm - #58

Open
ahmet-cetinkaya wants to merge 1 commit into
mainfrom
fix/test-deploy-workflow-npm
Open

ahmet-cetinkaya wants to merge 1 commit into
mainfrom
fix/test-deploy-workflow-npm

Conversation

@ahmet-cetinkaya

Copy link
Copy Markdown
Contributor

Özet

Her PR'de kırmızı görünen "Test deployment" workflow'unu düzeltir. Workflow npm tabanlı repoda yarn ile kurulum yapıyordu:

Dependencies lock file is not found in /home/runner/work/docs/docs.
Supported file patterns: yarn.lock

Değişiklikler

  • cache: yarn → cache: npm
  • yarn install --frozen-lockfile → npm ci
  • yarn build → npm run build
  • node-version: 18 → 20 (EOL; deploy.yml zaten 20 kullanıyor)

deploy.yml (main deploy) zaten aynı komutları kullanıyor — bu PR yalnızca PR test workflow'unu onunla hizalar.

Doğrulama

  • Bu PR'nin kendi "Test deployment" check'inin yeşil dönmesi (değişikliğin canlı kanıtı)
  • npm ci && npm run build lokale alındı, build geçiyor (doküman PR'ında aynı komutlarla doğrulandı)
  • Cloudflare Pages check'i bu PR'nin kapsamı dışında (yapılandırması Cloudflare tarafında; docs.insurup.com GitHub Pages'ten servis ediliyor)

The repo has package-lock.json (npm), but the PR workflow cached and
installed with yarn. 'Dependencies lock file is not found ... Supported
file patterns: yarn.lock' failed every PR; node 18 was also EOL.
Aligns with deploy.yml (node 20, npm ci, npm run build).
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 349174b
Status:🚫  Build failed.

View logs

@ahmet-cetinkaya ahmet-cetinkaya added the bug Something isn't working label Sep 16, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant