File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Artifacts-Test
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout Code
11+ uses : actions/checkout@v4
12+ - name : Use Node.js from .nvmrc
13+ uses : actions/setup-node@v4
14+ with :
15+ node-version : ' 20.x'
16+ - name : Install dependencies
17+ run : npm ci
18+ - name : Build 🔧
19+ run : npm run build --if-present
20+ - name : Archive production artifacts 🚀
21+ uses : actions/upload-artifact@v4
22+ with :
23+ name : lib
24+ path : lib
25+ check :
26+ name : check build
27+ needs : [build]
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Checkout Code
31+ uses : actions/checkout@v4
32+ with :
33+ persist-credentials : false
34+ - name : Setup Node.Js
35+ uses : actions/setup-node@v4
36+ with :
37+ node-version : ' 20.x'
38+ - name : Download artifacts
39+ uses : actions/download-artifact@v4
40+ with :
41+ name : lib
42+ - name : List files
43+ shell : bash
44+ run : |
45+ ls -la /
You can’t perform that action at this time.
0 commit comments