-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.17 KB
/
ci-upload-only.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: Upload-only CI
on:
push:
branches-ignore:
- "github-pages"
pull_request: {}
jobs:
changes:
runs-on: ubuntu-latest
outputs:
project: ${{ steps.filter.outputs.project }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: |
project:
- 'upload-only/**/*'
- '.github/workflows/ci-upload-only.yml'
lint:
if: |
needs.changes.outputs.project == 'true'
runs-on: ubuntu-latest
needs:
- changes
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
- run: cd upload-only && yarn install --frozen-lockfile
- run: cd upload-only && yarn lint
build:
if: |
needs.changes.outputs.project == 'true'
runs-on: ubuntu-latest
needs:
- changes
- lint
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
- run: cd upload-only && yarn install --frozen-lockfile
- run: cd upload-only && yarn build