-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (39 loc) · 1.06 KB
/
main.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
name: CI
on:
push:
branches: [main, beta, alpha]
pull_request:
types: [assigned, opened, synchronize, reopened]
jobs:
lint-and-test:
name: Linting and testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: install dependencies
run: yarn --frozen-lockfile
- name: lint and test
uses: mansagroup/nrwl-nx-action@v2
with:
targets: lint,test
maxParallel: 3
release:
name: Building and releasing project
runs-on: ubuntu-latest
needs: [lint-and-test]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: install dependencies
run: yarn --frozen-lockfile
- name: build and release
run: yarn nx run-many --all --target=release --parallel=1
env:
CI: true
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.ASSOCIATION_NPM_TOKEN }}