Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadrafiee committed May 30, 2024
2 parents 227252e + 5415e3a commit 7e87136
Show file tree
Hide file tree
Showing 62 changed files with 6,097 additions and 2,616 deletions.
13 changes: 13 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-runtime"
],
"ignore": [
"/node_modules/"
]
}
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const commonRules = {
};

module.exports = {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
env: {
browser: true,
jest: true,
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
env:
CI: true
NODE_ENV: production
- run: cp build/index.html build/404.html
- name: Push to remote
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "opendota+github-actions[bot]@users.noreply.github.com"
rm .gitignore
git checkout -b release
git add --all
git commit --quiet -m "Built from ${{ github.sha }}"
git push origin release -f
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ build
.env
yarn.lock
src/*.d.ts
.vite
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www.opendota.com
Loading

0 comments on commit 7e87136

Please sign in to comment.