-
Notifications
You must be signed in to change notification settings - Fork 139
42 lines (33 loc) · 972 Bytes
/
action.yml
File metadata and controls
42 lines (33 loc) · 972 Bytes
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
name: Build With Vite
on:
workflow_dispatch:
push:
branches: [master, v5.1]
pull_request:
branches: [master, v5.1]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.15.0]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install
npm run build
- name: Get version from package.json
id: pkg_version
run: echo "version=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
- name: Package files to tar.gz
run: tar -czvf n9e-fe-${{ steps.pkg_version.outputs.version }}.tar.gz ./pub
- name: Upload
uses: actions/upload-artifact@v4
with:
name: package-output-tar-gz
path: n9e-fe-${{ steps.pkg_version.outputs.version }}.tar.gz