Skip to content

Commit 54554b6

Browse files
Format with prettier
1 parent 67d8a1c commit 54554b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+25408
-22049
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
11
name: Admin HackIllinois CI
22

33
on:
4-
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
8-
types:
9-
- closed
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['main']
8+
types:
9+
- closed
1010

1111
jobs:
12-
build:
13-
14-
runs-on: ubuntu-latest
15-
16-
steps:
17-
- uses: actions/checkout@v3
18-
- name: Use Node.js 18
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: 18.x
22-
cache: 'npm'
23-
- run: npm i
24-
- run: npm run build
25-
- name: 'Upload Build'
26-
uses: actions/upload-artifact@v3
27-
with:
28-
name: build
29-
path: build/
30-
retention-days: 5
31-
32-
publish:
33-
needs: build
34-
runs-on: ubuntu-latest
35-
36-
steps:
37-
- uses: actions/checkout@master
38-
39-
- name: Download all workflow run artifacts
40-
uses: actions/download-artifact@v3
41-
42-
- name: Publish
43-
uses: netlify/actions/cli@master
44-
with:
45-
args: deploy -p --dir=build
46-
env:
47-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
48-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Use Node.js 18
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 18.x
21+
cache: 'npm'
22+
- run: npm i
23+
- run: npm run build
24+
- name: 'Upload Build'
25+
uses: actions/upload-artifact@v3
26+
with:
27+
name: build
28+
path: build/
29+
retention-days: 5
30+
31+
publish:
32+
needs: build
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- uses: actions/checkout@master
37+
38+
- name: Download all workflow run artifacts
39+
uses: actions/download-artifact@v3
40+
41+
- name: Publish
42+
uses: netlify/actions/cli@master
43+
with:
44+
args: deploy -p --dir=build
45+
env:
46+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
47+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 4,
4+
"semi": false,
5+
"singleQuote": true
6+
}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ HackIllinois' admin site
55
# Setup
66

77
Install dependencies with:
8+
89
```sh
910
npm install
1011
```
1112

1213
# Developing
1314

1415
To run locally, run:
16+
1517
```sh
1618
npm run dev
1719
```
1820

1921
Any changes pushed to `main` will be build by netlify to https://admin.hackillinois.org/
20-

jsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"compilerOptions": {
3-
"baseUrl": "src/"
4-
}
5-
}
2+
"compilerOptions": {
3+
"baseUrl": "src/"
4+
}
5+
}

0 commit comments

Comments
 (0)