-
Notifications
You must be signed in to change notification settings - Fork 94
43 lines (32 loc) · 1.02 KB
/
ci.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
name: build
on:
push:
branches:
- main
pull_request:
jobs:
build:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install npm dependencies
run: yarn install
- name: Build library package
run: yarn build:lib --configuration=production
- name: Copy readme and license files
run: yarn build:copy-files
- name: Run library tests
run: yarn test:lib --configuration=ci
- name: Run demo app tests
run: yarn test:demo --configuration=ci
- name: Show package.json
run: cat dist/ngx-sweetalert2/package.json
- name: Build library package for publishing
run: yarn build:lib --configuration production
- name: Run automated release process with semantic-release
if: github.event_name == 'push' && contains(github.ref, 'main')
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release