-
Notifications
You must be signed in to change notification settings - Fork 51
47 lines (40 loc) · 1.02 KB
/
FissionPackage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Fission - Package
on:
workflow_dispatch: {}
push:
branches: [ master, dev ]
jobs:
runUnitTests:
name: Package
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: JavaScript Setup
uses: actions/setup-node@v2
with:
node-version: 20
- name: Get date
id: date # this is used on variable path
run: |
echo "timestamp=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_OUTPUT
- name: Install Dependencies
run: |
cd fission
npm install
- name: Get package info
id: info
uses: codex-team/[email protected]
with:
path: fission/
- name: Build
id: build
run: |
cd fission
npm run build
- name: Upload Artifact
uses: actions/upload-artifact@v4
id: upload-artifact
with:
name: "${{ steps.info.outputs.name }}@${{ steps.info.outputs.version }}[${{ steps.date.outputs.timestamp }}]"
path: fission/dist/