tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
next config and github actions
awarm.space
2 years ago
a2adcdee
e6480a69
+44
3 changed files
expand all
collapse all
unified
split
next.config.js
.eslintrc.json
.github
workflows
main.yml
+8
next.config.js
···
1
1
+
// @ts-check
2
2
+
3
3
+
/** @type {import('next').NextConfig} */
4
4
+
const nextConfig = {
5
5
+
reactStrictMode: true,
6
6
+
};
7
7
+
8
8
+
module.exports = nextConfig;
+3
.eslintrc.json
···
1
1
+
{
2
2
+
"extends": "next/core-web-vitals"
3
3
+
}
+33
.github/workflows/main.yml
···
1
1
+
name: Deploy
2
2
+
3
3
+
on:
4
4
+
push:
5
5
+
branches:
6
6
+
- main
7
7
+
8
8
+
jobs:
9
9
+
typecheck:
10
10
+
runs-on: ubuntu-latest
11
11
+
name: typecheck
12
12
+
steps:
13
13
+
- uses: actions/checkout@v3
14
14
+
- uses: actions/setup-node@v3
15
15
+
with:
16
16
+
node-version: 17
17
17
+
cache: "npm"
18
18
+
- run: "npm i"
19
19
+
- run: "npx tsc"
20
20
+
deploy-supabase:
21
21
+
needs: [typecheck]
22
22
+
runs-on: ubuntu-latest
23
23
+
name: Deploy Supabase
24
24
+
env:
25
25
+
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
26
26
+
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}
27
27
+
PRODUCTION_PROJECT_ID: bdefzwcumgzjwllsnaej
28
28
+
29
29
+
steps:
30
30
+
- uses: actions/checkout@v3
31
31
+
- uses: supabase/setup-cli@v1
32
32
+
- run: supabase link --project-ref $PRODUCTION_PROJECT_ID
33
33
+
- run: supabase db push