-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 878 Bytes
/
release.yml
File metadata and controls
38 lines (31 loc) · 878 Bytes
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
name: Release
on:
push:
branches:
- main
- next
- beta
- alpha
env:
CI: true
jobs:
release:
name: Build, Release & Publish
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- name: Checkout [main] 🛎️
uses: actions/checkout@v2
- name: Install Dependencies 🔧
run: npm install --no-package-lock --legacy-peer-deps
- name: Lint Workspace & Code
run: |
npm run nx -- workspace-lint
npm run affected:lint -- --all
- name: Unit Tests
run: npm run affected:test -- --all
- name: Build, Release on GitHub & Publish to NPM 🚀
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN || secrets.GITHUB_TOKEN }}
run: npm run release