-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 943 Bytes
/
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
name: Release
on:
push:
branches:
- 'main'
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Dependencies
run: |
yarn install
npx nx run-many --target=install --all --parallel
- name: Build and Test
run: |
npx nx affected -t lint
npx nx affected -t test --configuration=ci --passWithNoTests --exclude=justaname-mono-sdk
npx nx affected -t build
- name: Set up Git user
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
- name: Release
run: npx nx release --yes
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}