File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,20 +16,26 @@ jobs:
1616 - uses : actions/checkout@v2
1717 with :
1818 fetch-depth : 0
19+
1920 - uses : actions/setup-node@v2
2021 with :
2122 node-version : " 22"
23+
2224 - uses : actions/cache@v4
2325 with :
2426 path : ~/.npm
2527 key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
28+
2629 - run : npm ci
30+
2731 - name : Build
2832 env :
2933 VITE_AUTH_TOKEN : ${{ secrets.VITE_AUTH_TOKEN }}
34+ VITE_GITHUB_TOKEN : ${{ secrets.VITE_GITHUB_TOKEN }}
3035 run : |
31- VITE_AUTH_TOKEN=${{secrets.VITE_AUTH_TOKEN}} npm run build
36+ VITE_AUTH_TOKEN=${{secrets.VITE_AUTH_TOKEN}} VITE_GITHUB_TOKEN=${{secrets.VITE_GITHUB_TOKEN}} npm run build
3237 cp nginx.conf dist/
38+
3339 - name : Oc login
3440 uses : redhat-actions/oc-login@v1
3541 with :
4551
4652 # Optional - this sets your Kubernetes context's current namespace after logging in.
4753 namespace : ui-components-build
54+
4855 - name : Start Build
4956 run : oc start-build ui-components-docs --from-dir dist --follow --wait
5057
You can’t perform that action at this time.
0 commit comments