Skip to content

Commit 94608b8

Browse files
authored
chore: upgrade gh actions
1 parent ecc431a commit 94608b8

File tree

9 files changed

+47
-49
lines changed

9 files changed

+47
-49
lines changed

.env.example

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
REACT_APP_POLLING_INTERVAL=300000
2-
REACT_APP_DOCWHIZZ_TRAEFIK_EE_USER_ID=""
3-
REACT_APP_DOCWHIZZ_TRAEFIK_PROXY_USER_ID=""

.github/workflows/pr.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v4
1315

1416
- name: Setup Node.js
15-
uses: actions/setup-node@v2
16-
17-
- name: Check out code
18-
uses: actions/checkout@v2
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version-file: '.nvmrc'
20+
cache: yarn
1921

2022
- name: Install dependencies
2123
run: make deps
@@ -25,4 +27,3 @@ jobs:
2527

2628
- name: Generate assets
2729
run: make static-assets
28-

.github/workflows/publish.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ on:
77

88
env:
99
REACT_APP_POLLING_INTERVAL: 300000
10-
REACT_APP_DOCWHIZZ_TRAEFIK_EE_USER_ID: "${{ secrets.DOCWHIZZ_TRAEFIK_EE_USER_ID }}"
11-
REACT_APP_DOCWHIZZ_TRAEFIK_PROXY_USER_ID: "${{ secrets.DOCWHIZZ_TRAEFIK_PROXY_USER_ID }}"
1210

1311
jobs:
1412
doc:
1513
name: Build and publish assets
1614
runs-on: ubuntu-latest
1715
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v4
1818

1919
- name: Setup Node.js
20-
uses: actions/setup-node@v2
21-
22-
- name: Check out code
23-
uses: actions/checkout@v2
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: yarn
2424

2525
- name: Install dependencies
2626
run: make deps
@@ -33,7 +33,7 @@ jobs:
3333

3434
# https://github.com/marketplace/actions/github-pages
3535
- name: Deploy to GitHub Pages
36-
uses: crazy-max/ghaction-github-pages@v2
36+
uses: crazy-max/ghaction-github-pages@v4
3737
with:
3838
target_branch: gh-pages
3939
build_dir: static-assets

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.7.0
1+
v20

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
default: deps build static-assets
44

55
deps:
6-
yarn install
6+
yarn install --frozen-lockfile --production
77

88
build:
99
yarn build

package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@testing-library/jest-dom": "^5.14.1",
7-
"@testing-library/react": "^13.0.0",
8-
"@testing-library/user-event": "^13.2.1",
9-
"@types/jest": "^27.0.1",
10-
"@types/node": "^16.7.13",
6+
"@containous/faency": "^0.7.0",
7+
"@types/node": "^20.12.7",
118
"@types/react": "^18.0.0",
129
"@types/react-dom": "^18.0.0",
10+
"@types/styled-components": "^5.1.26",
11+
"@types/styled-system": "^5.1.15",
12+
"query-string": "^7.1.1",
1313
"react": "^18.2.0",
1414
"react-dom": "^18.2.0",
1515
"react-scripts": "5.0.1",
16+
"styled-components": "^5.3.5",
17+
"styled-system": "^5.1.5",
18+
"swr": "^1.3.0",
1619
"typescript": "^4.4.2",
1720
"web-vitals": "^2.1.0"
1821
},
@@ -42,12 +45,9 @@
4245
]
4346
},
4447
"devDependencies": {
45-
"@containous/faency": "^0.7.0",
46-
"@types/styled-components": "^5.1.26",
47-
"@types/styled-system": "^5.1.15",
48-
"query-string": "^7.1.1",
49-
"styled-components": "^5.3.5",
50-
"styled-system": "^5.1.5",
51-
"swr": "^1.3.0"
48+
"@testing-library/jest-dom": "^5.14.1",
49+
"@testing-library/react": "^13.0.0",
50+
"@testing-library/user-event": "^13.2.1",
51+
"@types/jest": "^27.0.1"
5252
}
5353
}

public/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
66
<meta name="theme-color" content="#000000" />
77
<meta name="description" content="Traefik Header Web Component to use in any framework" />
8-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
98
<!--
109
point this script src to the local build
1110
-->
1211
<script
13-
type="text/javascript"
12+
type="text/babel"
1413
src="/build/static/js/"
1514
></script>
1615
<!--
@@ -28,6 +27,9 @@
2827
Learn how to configure a non-root public URL by running `npm run build`.
2928
-->
3029
<title>Traefik Header Web Component Preview</title>
30+
<link rel="preconnect" href="https://fonts.googleapis.com">
31+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
32+
<link href="https://fonts.googleapis.com/css2?family=Rubik:[email protected]&display=swap" rel="stylesheet">
3133
<style>
3234
body {
3335
background: rgba(230, 230, 230, 0.5);

public/manifest.json

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
{
2-
"short_name": "React App",
3-
"name": "Create React App Sample",
2+
"short_name": "Traefik Labs Header",
3+
"name": "Traefik Labs Header Web Component",
44
"icons": [
55
{
66
"src": "favicon.ico",
77
"sizes": "64x64 32x32 24x24 16x16",
88
"type": "image/x-icon"
9-
},
10-
{
11-
"src": "logo192.png",
12-
"type": "image/png",
13-
"sizes": "192x192"
14-
},
15-
{
16-
"src": "logo512.png",
17-
"type": "image/png",
18-
"sizes": "512x512"
199
}
2010
],
2111
"start_url": ".",

yarn.lock

+14-7
Original file line numberDiff line numberDiff line change
@@ -2173,10 +2173,12 @@
21732173
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.6.tgz#31743bc5772b6ac223845e18c3fc26f042713c83"
21742174
integrity sha512-EdxgKRXgYsNITy5mjjXjVE/CS8YENSdhiagGrLqjG0pvA2owgJ6i4l7wy/PFZGC0B1/H20lWKN7ONVDNYDZm7A==
21752175

2176-
"@types/node@^16.7.13":
2177-
version "16.11.49"
2178-
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.49.tgz#560b1ea774b61e19a89c3fc72d2dcaa3863f38b2"
2179-
integrity sha512-Abq9fBviLV93OiXMu+f6r0elxCzRwc0RC5f99cU892uBITL44pTvgvEqlRlPRi8EGcO1z7Cp8A4d0s/p3J/+Nw==
2176+
"@types/node@^20.12.7":
2177+
version "20.12.7"
2178+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.7.tgz#04080362fa3dd6c5822061aa3124f5c152cff384"
2179+
integrity sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==
2180+
dependencies:
2181+
undici-types "~5.26.4"
21802182

21812183
"@types/parse-json@^4.0.0":
21822184
version "4.0.0"
@@ -3204,9 +3206,9 @@ caniuse-api@^3.0.0:
32043206
lodash.uniq "^4.5.0"
32053207

32063208
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001370, caniuse-lite@^1.0.30001373:
3207-
version "1.0.30001377"
3208-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001377.tgz#fa446cef27f25decb0c7420759c9ea17a2221a70"
3209-
integrity sha512-I5XeHI1x/mRSGl96LFOaSk528LA/yZG3m3iQgImGujjO8gotd/DL8QaI1R1h1dg5ATeI2jqPblMpKq4Tr5iKfQ==
3209+
version "1.0.30001610"
3210+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001610.tgz"
3211+
integrity sha512-QFutAY4NgaelojVMjY63o6XlZyORPaLfyMnsl3HgnWdJUcX6K0oaJymHjH8PT5Gk7sTm8rvC/c5COUQKXqmOMA==
32103212

32113213
case-sensitive-paths-webpack-plugin@^2.4.0:
32123214
version "2.4.0"
@@ -8797,6 +8799,11 @@ unbox-primitive@^1.0.2:
87978799
has-symbols "^1.0.3"
87988800
which-boxed-primitive "^1.0.2"
87998801

8802+
undici-types@~5.26.4:
8803+
version "5.26.5"
8804+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
8805+
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
8806+
88008807
unicode-canonical-property-names-ecmascript@^2.0.0:
88018808
version "2.0.0"
88028809
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc"

0 commit comments

Comments
 (0)