Skip to content

Commit d088011

Browse files
committed
update all the things
1 parent 4f5dd48 commit d088011

34 files changed

+3138
-367
lines changed

.eslintignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/workflows/validate.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- name: ⬇️ Checkout repo
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- name: ⎔ Setup node
25-
uses: actions/setup-node@v3
25+
uses: actions/setup-node@v4
2626
with:
27-
node-version: 18
27+
node-version: 20
2828

2929
- name: ▶️ Run setup script
3030
run: npm run setup
@@ -38,23 +38,20 @@ jobs:
3838
deploy:
3939
name: 🚀 Deploy
4040
runs-on: ubuntu-latest
41-
# only deploy main branch on pushes
42-
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
41+
# only deploy main branch on pushes on non-forks
42+
if:
43+
${{ github.ref == 'refs/heads/main' && github.event_name == 'push' &&
44+
github.repository_owner == 'epicweb-dev' }}
4345

4446
steps:
4547
- name: ⬇️ Checkout repo
46-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4749

48-
# move Dockerfile to root
49-
- name: 🚚 Move Files
50-
run: |
51-
mv ./epicshop/fly.toml ./fly.toml
52-
mv ./epicshop/Dockerfile ./Dockerfile
53-
mv ./epicshop/.dockerignore ./.dockerignore
50+
- name: 🎈 Setup Fly
51+
uses: superfly/flyctl-actions/[email protected]
5452

55-
- name: 🚀 Deploy Production
56-
uses: superfly/[email protected]
57-
with:
58-
args: 'deploy --remote-only'
53+
- name: 🚀 Deploy
54+
run: flyctl deploy --remote-only
55+
working-directory: ./epicshop
5956
env:
6057
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

.prettierignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 35 deletions
This file was deleted.

epicshop/deployed/Dockerfile renamed to epicshop/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ ADD . .
1515

1616
RUN npm install --omit=dev
1717

18-
CMD node ./setup-swap.js && \
19-
rm -rf ${EPICSHOP_CONTEXT_CWD} && \
18+
CMD rm -rf ${EPICSHOP_CONTEXT_CWD} && \
2019
git clone https://github.com/epicweb-dev/workshop-template ${EPICSHOP_CONTEXT_CWD} && \
2120
cd ${EPICSHOP_CONTEXT_CWD} && \
2221
npx epicshop start

epicshop/deployed/package.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

epicshop/deployed/setup-swap.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

epicshop/fix-watch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import chokidar from 'chokidar'
21
import path from 'node:path'
3-
import { $ } from 'execa'
42
import { fileURLToPath } from 'node:url'
3+
import chokidar from 'chokidar'
4+
import { $ } from 'execa'
55

66
const __dirname = path.dirname(fileURLToPath(import.meta.url))
77
const here = (...p) => path.join(__dirname, ...p)

epicshop/fix.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// This should run by node without any dependencies
22
// because you may need to run it without deps.
33

4-
import fs from 'node:fs'
54
import cp from 'node:child_process'
5+
import fs from 'node:fs'
66
import path from 'node:path'
77
import { fileURLToPath } from 'node:url'
88

@@ -55,7 +55,7 @@ async function updatePkgNames() {
5555
for (const file of appsWithPkgJson) {
5656
const pkgjsonPath = path.join(file, 'package.json')
5757
const pkg = JSON.parse(await fs.promises.readFile(pkgjsonPath, 'utf8'))
58-
pkg.name = relativeToWorkshopRoot(file).replace(/\\|\//g, '__sep__')
58+
pkg.name = relativeToWorkshopRoot(file).replace(/\\|\//g, '_')
5959
const written = await writeIfNeeded(
6060
pkgjsonPath,
6161
`${JSON.stringify(pkg, null, 2)}\n`,

epicshop/deployed/fly.toml renamed to epicshop/fly.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ primary_region = "sjc"
33
kill_signal = "SIGINT"
44
kill_timeout = 5
55
processes = [ ]
6+
swap_size_mb = 512
67

78
[experimental]
89
allowed_public_ports = [ ]

0 commit comments

Comments
 (0)