-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (59 loc) · 1.52 KB
/
release.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
55
56
57
58
59
60
61
62
63
64
name: Release
on:
push:
branches:
main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.11.0]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache node modules
uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm ci -force
env:
CI: true
# - name: Linting
# run: npm run lint
# env:
# CI: true
- name: Units Testing
run: npm run e2e-run
env:
CI: true
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: 'e2e-results/**/*.xml'
- name: Build Dist
run: npm run build-lib
env:
CI: true
- name: Npm Configuration
run: npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish Cron Core
run: npm run publish
env:
CI: true