diff --git a/.env.example b/.env.example index 857c3fb..629cd0e 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1 @@ REACT_APP_POLLING_INTERVAL=300000 -REACT_APP_DOCWHIZZ_TRAEFIK_EE_USER_ID="" -REACT_APP_DOCWHIZZ_TRAEFIK_PROXY_USER_ID="" diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 636546f..1379e8c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,12 +10,14 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v2 - - - name: Check out code - uses: actions/checkout@v2 + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: yarn - name: Install dependencies run: make deps @@ -25,4 +27,3 @@ jobs: - name: Generate assets run: make static-assets - diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 404652a..7816536 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,20 +7,20 @@ on: env: REACT_APP_POLLING_INTERVAL: 300000 - REACT_APP_DOCWHIZZ_TRAEFIK_EE_USER_ID: "${{ secrets.DOCWHIZZ_TRAEFIK_EE_USER_ID }}" - REACT_APP_DOCWHIZZ_TRAEFIK_PROXY_USER_ID: "${{ secrets.DOCWHIZZ_TRAEFIK_PROXY_USER_ID }}" jobs: doc: name: Build and publish assets runs-on: ubuntu-latest steps: + - name: Check out code + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v2 - - - name: Check out code - uses: actions/checkout@v2 + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: yarn - name: Install dependencies run: make deps @@ -33,7 +33,7 @@ jobs: # https://github.com/marketplace/actions/github-pages - name: Deploy to GitHub Pages - uses: crazy-max/ghaction-github-pages@v2 + uses: crazy-max/ghaction-github-pages@v4 with: target_branch: gh-pages build_dir: static-assets diff --git a/.nvmrc b/.nvmrc index 02c4afe..9a2a0e2 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18.7.0 \ No newline at end of file +v20 diff --git a/Makefile b/Makefile index bc24589..9ba94ca 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ default: deps build static-assets deps: - yarn install + yarn install --frozen-lockfile --production build: yarn build diff --git a/package.json b/package.json index 0d588ef..44d9616 100644 --- a/package.json +++ b/package.json @@ -3,16 +3,19 @@ "version": "0.1.0", "private": true, "dependencies": { - "@testing-library/jest-dom": "^5.14.1", - "@testing-library/react": "^13.0.0", - "@testing-library/user-event": "^13.2.1", - "@types/jest": "^27.0.1", - "@types/node": "^16.7.13", + "@containous/faency": "^0.7.0", + "@types/node": "^20.12.7", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", + "@types/styled-components": "^5.1.26", + "@types/styled-system": "^5.1.15", + "query-string": "^7.1.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", + "styled-components": "^5.3.5", + "styled-system": "^5.1.5", + "swr": "^1.3.0", "typescript": "^4.4.2", "web-vitals": "^2.1.0" }, @@ -42,12 +45,9 @@ ] }, "devDependencies": { - "@containous/faency": "^0.7.0", - "@types/styled-components": "^5.1.26", - "@types/styled-system": "^5.1.15", - "query-string": "^7.1.1", - "styled-components": "^5.3.5", - "styled-system": "^5.1.5", - "swr": "^1.3.0" + "@testing-library/jest-dom": "^5.14.1", + "@testing-library/react": "^13.0.0", + "@testing-library/user-event": "^13.2.1", + "@types/jest": "^27.0.1" } } diff --git a/public/index.html b/public/index.html index d18e7a4..c69d764 100644 --- a/public/index.html +++ b/public/index.html @@ -5,12 +5,11 @@ - Traefik Header Web Component Preview + + +