File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1818 - " .github/FUNDING.yml"
1919 - " .eslintrc"
2020 - " .gitignore"
21+ - " __tests__/**"
2122 pull_request :
2223 # Triggers on pull requests to main/development branches.
2324 branches : ["main", "development"]
3031 - " .github/FUNDING.yml"
3132 - " .eslintrc"
3233 - " .gitignore"
34+ - " __tests__/**"
3335 workflow_dispatch :
3436 # Allows manual triggering of the workflow.
3537
4042 uses : ./.github/workflows/lint-and-test.yml
4143 secrets : inherit
4244 with :
43- target_env : ${{ github.ref == 'refs/heads/main' && 'production' || github.ref == 'refs/heads/development' && 'development' || 'invalid' }}
45+ target_env : ${{
46+ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && 'production' ||
47+ (github.ref == 'refs/heads/development' || github.base_ref == 'development') && 'development'
48+ }}
4449 node-version : " 22.4.1"
4550 skip_deploy : ${{ github.event_name == 'pull_request' }} # skip deployment if it's a pull request
You can’t perform that action at this time.
0 commit comments