Skip to content

Commit 53a40ca

Browse files
thomasfrAlemTuzlak
andauthored
changed workflows (forge-42#191)
* changed workflows * removed global env var * fix --------- Co-authored-by: Alem Tuzlak <[email protected]>
1 parent fa60880 commit 53a40ca

File tree

3 files changed

+91
-79
lines changed

3 files changed

+91
-79
lines changed

.github/workflows/publish.yaml

+18-12
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
types: [published]
55
workflow_dispatch:
66

7-
env:
8-
FLY_ORG: ${{ vars.FLY_ORG }}
9-
107
jobs:
118
npm-publish:
129
runs-on: ubuntu-latest
@@ -22,13 +19,22 @@ jobs:
2219
env:
2320
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2421

25-
deploy-preview:
22+
23+
deploy-docs:
2624
name: "🚀 Deploy Docs"
27-
needs: [npm-publish]
28-
uses: forge42dev/workflows/.github/workflows/deploy-to-fly.yaml@monorepo-matrix
29-
with:
30-
workspace_name: docs
31-
set_cwd_to_workspace: true
32-
github_environment: "docs-release"
33-
secrets:
34-
fly_api_token: ${{ secrets.FLY_API_TOKEN }}
25+
runs-on: ubuntu-latest
26+
environment:
27+
name: docs-release
28+
url: ${{ steps.deploy.outputs.app_url }}
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: forge-42/[email protected]
32+
id: deploy
33+
env:
34+
FLY_ORG: ${{ vars.FLY_ORG }}
35+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
36+
FLY_REGION: fra
37+
with:
38+
workspace_name: docs
39+
app_name: react-router-devtools-docs-release
40+
use_isolated_workspace: true

.github/workflows/validate.yaml

+18-12
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
pull_request:
99
branches: [main]
1010

11-
env:
12-
FLY_ORG: ${{ vars.FLY_ORG }}
13-
1411
permissions:
1512
actions: write
1613
contents: read
@@ -72,14 +69,23 @@ jobs:
7269
# if: always()
7370
# uses: davelosert/vitest-coverage-report-action@v2
7471

75-
76-
deploy-preview:
72+
deploy-docs-pr-preview:
73+
if: ${{ github.event_name == 'pull_request' }}
7774
name: "🚀 Deploy Docs"
7875
needs: [lint, typecheck, vitest]
79-
uses: forge42dev/workflows/.github/workflows/deploy-to-fly.yaml@monorepo-matrix
80-
with:
81-
workspace_name: docs
82-
set_cwd_to_workspace: true
83-
github_environment: "docs-previev"
84-
secrets:
85-
fly_api_token: ${{ secrets.FLY_API_TOKEN }}
76+
runs-on: ubuntu-latest
77+
environment:
78+
name: docs-release
79+
url: ${{ steps.deploy.outputs.app_url }}
80+
steps:
81+
- uses: actions/checkout@v4
82+
- uses: forge-42/[email protected]
83+
id: deploy
84+
env:
85+
FLY_ORG: ${{ vars.FLY_ORG }}
86+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
87+
FLY_REGION: fra
88+
with:
89+
workspace_name: docs
90+
app_name: react-router-devtools-docs-pr-${{ github.event.number }}
91+
use_isolated_workspace: true

docs/package.json

+55-55
Original file line numberDiff line numberDiff line change
@@ -24,80 +24,80 @@
2424
},
2525
"dependencies": {
2626
"@epic-web/invariant": "^1.0.0",
27-
"@headlessui/react": "^2.2.0",
28-
"@octokit/request": "^9.2.0",
29-
"@react-router/fs-routes": "7.1.4",
30-
"@react-router/node": "7.1.4",
31-
"@react-router/serve": "7.1.4",
27+
"@headlessui/react": "^1.7.18",
28+
"@octokit/request": "^8.1.6",
29+
"@react-router/fs-routes": "7.0.0",
30+
"@react-router/node": "7.0.0",
31+
"@react-router/serve": "7.0.0",
3232
"@sindresorhus/slugify": "^2.2.1",
33-
"@tsparticles/engine": "^3.8.1",
33+
"@tsparticles/engine": "^3.3.0",
3434
"@tsparticles/react": "^3.0.0",
35-
"@tsparticles/slim": "^3.8.1",
36-
"acorn": "^8.14.0",
37-
"clsx": "^2.1.1",
38-
"cookie": "^1.0.2",
39-
"dotenv": "^16.4.7",
40-
"framer-motion": "^12.0.6",
41-
"isbot": "^5.1.22",
35+
"@tsparticles/slim": "^3.3.0",
36+
"acorn": "^8.11.3",
37+
"clsx": "^2.1.0",
38+
"cookie": "^0.6.0",
39+
"dotenv": "^16.4.1",
40+
"framer-motion": "^11.0.8",
41+
"isbot": "^3.6.8",
4242
"json5": "^2.2.3",
43-
"lucide-react": "^0.474.0",
43+
"lucide-react": "^0.309.0",
4444
"mdast-util-to-string": "^4.0.0",
45-
"mdx-bundler": "^10.0.3",
45+
"mdx-bundler": "^10.0.1",
4646
"prismjs": "^1.29.0",
47-
"react": "^19.0.0",
48-
"react-dom": "^19.0.0",
49-
"react-router": "7.1.4",
50-
"react-spring": "^9.7.5",
47+
"react": "^18.2.0",
48+
"react-dom": "^18.2.0",
49+
"react-router": "7.0.0",
50+
"react-spring": "^9.7.3",
5151
"redent": "^4.0.0",
5252
"rehype-slug": "^6.0.0",
53-
"remark-emoji": "^5.0.1",
53+
"remark-emoji": "^4.0.1",
5454
"remark-gfm": "^4.0.0",
55-
"remix-client-cache": "2.1.0",
56-
"tailwind-merge": "^3.0.1",
55+
"remix-client-cache": "2.0.0",
56+
"tailwind-merge": "^2.2.1",
5757
"unist-util-filter": "^5.0.1",
5858
"unist-util-visit": "^5.0.0",
59-
"react-router-devtools": "1.1.0",
60-
"zod": "^3.24.1"
59+
"react-router-devtools": "1.0.1",
60+
"zod": "^3.22.4"
6161
},
6262
"devDependencies": {
63-
"@playwright/test": "^1.50.0",
64-
"@react-router/dev": "7.1.4",
65-
"@tailwindcss/typography": "0.5.16",
66-
"@types/prismjs": "^1.26.5",
67-
"@types/react": "^19.0.8",
68-
"@types/react-dom": "^19.0.3",
69-
"@typescript-eslint/parser": "^8.22.0",
70-
"@vitejs/plugin-react": "^4.3.4",
71-
"@vitest/coverage-v8": "^3.0.4",
72-
"autoprefixer": "^10.4.20",
63+
"@playwright/test": "^1.41.1",
64+
"@react-router/dev": "7.0.0",
65+
"@tailwindcss/typography": "0.5.9",
66+
"@types/prismjs": "^1.26.3",
67+
"@types/react": "^18.2.20",
68+
"@types/react-dom": "^18.2.7",
69+
"@typescript-eslint/parser": "^6.17.0",
70+
"@vitejs/plugin-react": "^4.2.1",
71+
"@vitest/coverage-v8": "^1.2.1",
72+
"autoprefixer": "^10.4.16",
7373
"cross-env": "^7.0.3",
74-
"eslint": "^9.19.0",
75-
"eslint-config-prettier": "^10.0.1",
74+
"eslint": "^8.38.0",
75+
"eslint-config-prettier": "^9.1.0",
7676
"eslint-config-standard": "^17.1.0",
77-
"eslint-import-resolver-typescript": "^3.7.0",
77+
"eslint-import-resolver-typescript": "^3.6.1",
7878
"eslint-plugin-disable": "^2.0.3",
79-
"eslint-plugin-import": "^2.31.0",
80-
"eslint-plugin-jsx-a11y": "^6.10.2",
79+
"eslint-plugin-import": "^2.29.1",
80+
"eslint-plugin-jsx-a11y": "^6.7.1",
8181
"eslint-plugin-node": "^11.1.0",
82-
"eslint-plugin-prettier": "^5.2.3",
83-
"eslint-plugin-react": "^7.37.4",
84-
"eslint-plugin-react-hooks": "^5.1.0",
85-
"eslint-plugin-simple-import-sort": "^12.1.1",
86-
"eslint-plugin-sort-destructure-keys": "^2.0.0",
82+
"eslint-plugin-prettier": "^5.1.2",
83+
"eslint-plugin-react": "^7.33.2",
84+
"eslint-plugin-react-hooks": "^4.6.0",
85+
"eslint-plugin-simple-import-sort": "^10.0.0",
86+
"eslint-plugin-sort-destructure-keys": "^1.5.0",
8787
"gray-matter": "^4.0.3",
88-
"jsdom": "^26.0.0",
89-
"prettier": "^3.4.2",
90-
"prettier-plugin-tailwindcss": "^0.6.11",
91-
"rimraf": "^6.0.1",
92-
"tailwindcss": "^4.0.1",
93-
"tsx": "^4.19.2",
94-
"typescript": "^5.7.3",
95-
"vite": "^6.0.11",
96-
"vite-tsconfig-paths": "^5.1.4",
97-
"vitest": "^3.0.4"
88+
"jsdom": "^24.0.0",
89+
"prettier": "^3.1.1",
90+
"prettier-plugin-tailwindcss": "^0.5.10",
91+
"rimraf": "^5.0.5",
92+
"tailwindcss": "^3.4.0",
93+
"tsx": "^4.7.0",
94+
"typescript": "^5.1.6",
95+
"vite": "^5.0.0",
96+
"vite-tsconfig-paths": "^4.2.1",
97+
"vitest": "^1.2.1"
9898
},
9999
"optionalDependencies": {
100-
"@rollup/rollup-linux-x64-gnu": "^4.32.1"
100+
"@rollup/rollup-linux-x64-gnu": "^4.4.1"
101101
},
102102
"engines": {
103103
"node": ">=18.0.0"

0 commit comments

Comments
 (0)