Skip to content

Commit ab51787

Browse files
committed
ci: update prod-deploy.yml
Signed-off-by: riccardoperra <riccardo.perra@icloud.com>
1 parent c07761c commit ab51787

File tree

3 files changed

+7
-87
lines changed

3 files changed

+7
-87
lines changed

.github/workflows/prod-deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,13 @@ jobs:
254254
env:
255255
DATABASE_URL: ${{ secrets.NEXT_DATABASE_URL }}
256256
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
257+
257258
- name: Deploy to Railway
258259
run: |
259-
find -type f -name '.gitignore' -delete
260-
pnpm railway link --environment production $RAILWAY_API_PROJECT_ID
260+
npx @railway/cli@3.3.1 link --environment production $RAILWAY_API_PROJECT_ID
261261
cd dist/api-bundle
262-
pnpm railway up -s codeimage
262+
find -type f -name '.gitignore' -delete
263+
npx @railway/cli@3.3.1 up -s codeimage
263264
env:
264265
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
265266
RAILWAY_API_PROJECT_ID: ${{ secrets.RAILWAY_API_PROJECT_ID }}

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
"pre-commit-eslint": "oxlint --fix",
5555
"prepare:env": "tsx ./scripts/make-env.ts",
5656
"prepare:env:codesandbox": "RUN_ON_CODESANDBOX=true tsx ./scripts/make-env",
57-
"prepare:api:deploy": "pnpm-bundle-workspace-package @codeimage/api --outDir=dist/api-bundle && rm -rf dist/api-bundle/workspace-dependencies/prisma-models/.gitignore",
58-
"railway:up": "railway up"
57+
"prepare:api:deploy": "pnpm-bundle-workspace-package @codeimage/api --outDir=dist/api-bundle && rm -rf dist/api-bundle/workspace-dependencies/prisma-models/.gitignore"
5958
},
6059
"packageManager": "pnpm@10.32.1",
6160
"devDependencies": {
@@ -68,22 +67,19 @@
6867
"@commitlint/cli": "^20.5.0",
6968
"@commitlint/config-angular": "^20.5.0",
7069
"@commitlint/config-conventional": "^20.5.0",
71-
"@railway/cli": "^4.35.0",
7270
"@types/node": "catalog:next",
7371
"@types/prettier": "^3.0.0",
7472
"chalk": "5.6.2",
75-
"cross-env": "^10.1.0",
7673
"enquirer": "2.4.1",
7774
"eslint-plugin-solid": "0.14.5",
78-
"globals": "^17.4.0",
7975
"husky": "9.1.7",
8076
"lint-staged": "^16.4.0",
8177
"oxfmt": "catalog:next",
8278
"oxlint": "catalog:next",
8379
"pnpm-bundle-workspace-package": "^1.0.2",
8480
"tslib": "^2.8.1",
8581
"tsx": "catalog:next",
86-
"typescript": "^6.0.2",
82+
"typescript": "catalog:next",
8783
"vite": "catalog:next"
8884
},
8985
"engines": {
@@ -109,4 +105,4 @@
109105
"dependencies": {
110106
"statebuilder": "^0.8.1"
111107
}
112-
}
108+
}

pnpm-lock.yaml

Lines changed: 0 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)