Skip to content

Commit

Permalink
Merge pull request #4 from hyeri-woo/develop
Browse files Browse the repository at this point in the history
Merge 메인 브랜치로 병합
  • Loading branch information
hyeri-woo authored Oct 11, 2023
2 parents 109fb3b + 0b6adcb commit dcc7fd4
Show file tree
Hide file tree
Showing 136 changed files with 26,807 additions and 140 deletions.
43 changes: 22 additions & 21 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "prettier"],
"rules": {
"prettier/prettier": "error",
"react/react-in-jsx-scope": "off",
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-extra-semi": "error",
"no-tabs": ["error", { "allowIndentationTabs": true }]
}
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "prettier"],
"rules": {
"prettier/prettier": "warn",
"react/react-in-jsx-scope": "off",
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-extra-semi": "error",
"no-tabs": ["error", { "allowIndentationTabs": true }],
"react/prop-types": "off",
"no-unused-vars": "off",
"indent": "off"
}
}
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'weather-api-workflow'

on:
push:
branches: ['main', 'develop']

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create env
run: |
echo "REACT_APP_WEATHER_API_KEY=$REACT_APP_WEATHER_API_KEY" >> .env
env:
REACT_APP_WEATHER_API_KEY: ${{ secrets.REACT_APP_WEATHER_API_KEY }}
- name: Install
run: rm -f package-lock.json && npm install
- name: Build
run: npm run build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './build'
production-branch: develop
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# production
/build

.env

# misc
.DS_Store
.env.local
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"semi": true,
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "always"
"arrowParens": "always",
"quoteProps": "preserve"
}
Loading

0 comments on commit dcc7fd4

Please sign in to comment.