-
-
Notifications
You must be signed in to change notification settings - Fork 127
63 lines (52 loc) · 1.92 KB
/
build.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
52
53
54
55
56
57
58
59
60
61
62
63
name: build
on: [push]
jobs:
lint:
uses: ./.github/workflows/lint.yml
release:
needs: lint
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v2
env:
NPM_TOKEN: '' # https://github.com/JS-DevTools/npm-publish/issues/15
with:
cache-dependency-path: package.json # we don't have a package-lock.json so we'll use this instead...
node-version: "18"
- name: Run `npm install --no-package-lock` on cli-output-helpers
run: npm install --no-package-lock
working-directory: tools/cli-output-helpers
- name: Build cli-output-helpers
run: npm run build
working-directory: tools/cli-output-helpers
- name: Run `npm install --no-package-lock` on nevermore-template-helpers
run: npm install --no-package-lock
working-directory: tools/nevermore-template-helpers
- name: Build nevermore-template-helpers
run: npm run build
working-directory: tools/nevermore-template-helpers
- name: Run `npm install --no-package-lock` on nevermore-cli
run: npm install --no-package-lock
working-directory: tools/nevermore-cli
- name: Build nevermore-cli
run: npm run build
working-directory: tools/nevermore-cli
- name: Run npm install
run: npm install --no-save
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx auto shipit
- name: Upload lerna logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: lerna-debug.log
path: lerna-debug.log