-
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (45 loc) · 1.33 KB
/
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
39
40
41
42
43
44
45
46
47
48
name: release
on:
push:
branches:
- main
paths-ignore:
- '*.md'
jobs:
release:
# This line is critical for copy paste issues
if: github.repository == 'push-based/user-flow'
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup git user to "push-based.io - bot"
shell: bash
run: git config user.email "[email protected]" && git config user.name "push-based.io - bot"
- name: use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
- name: install
run: npm ci
- name: build
run: npm run nx -- affected:build
- name: test
run: npm run nx -- affected:test
- name: release CLI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run nx -- run cli:version
- name: release Nx plugin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run nx -- run nx-plugin:version