-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (44 loc) · 1.13 KB
/
build.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
48
49
50
51
52
53
54
name: Build
on:
push:
branches: ['main']
pull_request:
branches: ['main']
permissions:
contents: write
issues: write
id-token: write
jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Git checkout for source code analysis
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Generate assets
run: npm run assets:sync
- name: Run unit tests
run: npm run test
- name: Run qa
run: |
npm run qa:lint
npm run qa:duplication
- name: Release
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cp package.json src/
cp README.md src/
npm run release -- --r [email protected]:jzck/Open3CL.git