forked from GovAlta/ui-components
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (38 loc) · 1.14 KB
/
prod-release-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
44
45
46
47
48
49
50
51
name: Prod Release CI
on:
push:
branches:
- main
- BUGFIX
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: "20"
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npx nx run-many --target=build --all --prod --exclude=angular,react,angular-tests,angular-tests-e2e
- name: Update Web components documentation
run: cp libs/web-components/README.md dist/libs/web-components
- name: Remove types file for now
run: rm dist/libs/web-components/index.d.ts
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx nx run-many --target release --all