forked from vimeo/babel-plugin-transform-i18n
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 997 Bytes
/
pr.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
name: PR
on:
push
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Check changed files
id: changed-files
uses: tj-actions/changed-files@v38.2.2
with:
files: |
docs/**
- name: Check if all changes are in the docs folder
id: is_docs_only
run: echo "docs_only=${{ steps.changed-files-specific.outputs.only_modified == 'true' }}" >> "$GITHUB_OUTPUT"
- name: Install deps
if: ${{ steps.changed-files.outputs.only_modified == 'true' }}
run: npm ci
# - name: Lint
# run: npm run lint
# - name: Test
# run: npm run test