File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 11name : Build and Deploy
22
33on : workflow_dispatch
4+
45jobs :
56 build-and-deploy :
67 runs-on : ubuntu-latest
910 node-version : [18.x]
1011 steps :
1112 - name : Checkout 🛎️
12- uses : actions/checkout@v2.3.1
13+ uses : actions/checkout@v4
14+
1315 - name : Use Node.js ${{ matrix.node-version }}
1416 uses : actions/setup-node@v3
1517 with :
1618 node-version : ${{ matrix.node-version }}
19+
20+ - name : Clear npm cache
21+ run : npm cache clean --force
22+
1723 - name : Install and Build 🔧
1824 run : |
25+ export NODE_OPTIONS=--openssl-legacy-provider
1926 npm ci
2027 npm run build
2128
2229 - name : Deploy 🚀
23- uses : JamesIves/github-pages-deploy-action@4.1.3
30+ uses : JamesIves/github-pages-deploy-action@v4
2431 with :
25- branch : gh-pages # The branch the action should deploy to.
26- folder : build # The folder the action should deploy.
32+ branch : gh-pages
33+ folder : build
You can’t perform that action at this time.
0 commit comments