Skip to content

Commit 26fc7c1

Browse files
committed
wip: try workflow
1 parent ac301f0 commit 26fc7c1

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/artifact.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 /

0 commit comments

Comments
 (0)