Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Action fixes for web frameworks #6883

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

leoortizz
Copy link
Member

Description

  • If user chooses to set up a build script, do not suggest npm ci && npm run build. The reasons are:
    • The user can edit it and drop npm ci, which is required for frameworks.
    • It implies that build is required, but the frameworks code run the build for all frameworks, so if users does it themselves every action would build their app twice.
  • Add npm ci script automatically when using web framework.
  • Automatically adds a working directory config set to the hosting.source directory when hosting.source is not '.'. This is needed because "hosting" is the default directory on firebase init hosting, so if the user follows all the default options, at the end the deployment would fail as npm ci would run outside the project directory.
  • Add FIREBASE_CLI_EXPERIMENTS: "webframeworks" when using web frameworks.

Fixes #6863 and the issues described above

Scenarios Tested

Sample Commands

@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 24 lines in your changes are missing coverage. Please review.

Project coverage is 54.53%. Comparing base (cecf08b) to head (af4d74d).

Files Patch % Lines
src/init/features/hosting/github.ts 0.00% 24 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6883      +/-   ##
==========================================
- Coverage   54.56%   54.53%   -0.03%     
==========================================
  Files         355      355              
  Lines       24723    24740      +17     
  Branches     5107     5117      +10     
==========================================
+ Hits        13490    13492       +2     
- Misses      10013    10028      +15     
  Partials     1220     1220              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Next.js framework not detected in GitHub Action
2 participants