Skip to content

Open-source status page, incident response and uptime monitoring

πŸš€ GitHub action (#1256)

Thibault Le Ouay093b67a693f4
diff --git a/.github/workflows/dx.yml b/.github/workflows/dx.yml
index ea6acfef0..2cb0fa080 100644
--- a/.github/workflows/dx.yml
+++ b/.github/workflows/dx.yml
@@ -32,7 +32,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
- version: 10.0.0
+ version: 10.11.0
- name: βŽ” Setup node
uses: actions/setup-node@v4
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 42ef39e93..46948e1bc 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -22,7 +22,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
- version: 10.0.0
+ version: 10.11.0
- name: βŽ” Setup node
uses: actions/setup-node@v4
@@ -38,4 +38,4 @@ jobs:
- name: Apply fixes
uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
with:
- commit-message: 'ci: apply automated fixes'
\ No newline at end of file
+ commit-message: 'ci: apply automated fixes'
diff --git a/.github/workflows/migrate.yml b/.github/workflows/migrate.yml
new file mode 100644
index 000000000..8961863c6
--- /dev/null
+++ b/.github/workflows/migrate.yml
@@ -0,0 +1,40 @@
+name: Migrate DB
+on:
+ push:
+ branches:
+ - main
+ paths:
+ - "package/db/drizzle/**"
+jobs:
+ migrate:
+ name: πŸ—ƒοΈ Migrate DB
+ runs-on: ubuntu-latest
+ env:
+ DATABASE_URL: ${{ secrets.DATABASE_URL }}
+ DATABASE_AUTH_TOKEN: ${{ secrets.DATABASE_AUTH_TOKEN }}
+ steps:
+ - name: ⬇️ Checkout repo
+ uses: actions/checkout@v4
+
+ - name: Set up pnpm
+ uses: pnpm/action-setup@v4
+ with:
+ version: 10.11.0
+
+ - name: βŽ” Setup node
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: "pnpm"
+
+ - name: πŸ”₯ Install bun
+ uses: oven-sh/setup-bun@v2
+ with:
+ bun-version: latest
+
+ - name: πŸ“₯ Download deps
+ run: pnpm install
+
+ - name: πŸ—ƒοΈ Run migrations
+ run: pnpm migrate
+ working-directory: ./packages/db
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index f5fc81080..49bd5210f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -32,7 +32,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
- version: 10.0.0
+ version: 10.11.0
- name: βŽ” Setup node
uses: actions/setup-node@v4
diff --git a/package.json b/package.json
index af0da23f2..4b1147f76 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,7 @@
"turbo": "2.3.2",
"typescript": "5.6.2"
},
- "packageManager": "[email protected]",
+ "packageManager": "[email protected]",
"pnpm": {
"onlyBuiltDependencies": ["@swc/core", "sharp"]
},