Skip to content

Commit c08968b

Browse files
authored
Update pr-checker.yml
1 parent 4d0c8cb commit c08968b

File tree

1 file changed

+11
-31
lines changed

1 file changed

+11
-31
lines changed

.github/workflows/pr-checker.yml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,25 @@
11
name: Pr Checker
22

3-
on:
4-
pull_request:
5-
branches:
6-
- master
3+
on: [pull_request, pull_request_target]
74

85
jobs:
9-
check-types:
6+
pr-checker:
107
runs-on: ubuntu-latest
118

129
steps:
13-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1411

15-
- name: Read .nvmrc
16-
id: node_version
17-
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
18-
19-
- name: Setup node
20-
uses: actions/setup-node@v1
12+
- uses: actions/setup-node@v3
2113
with:
22-
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
14+
node-version-file: '.nvmrc'
2315

2416
- run: yarn install --frozen-lockfile
2517

2618
- run: yarn ts-check
27-
28-
lint:
29-
runs-on: ubuntu-latest
30-
31-
steps:
32-
- uses: actions/checkout@v2
33-
34-
- name: Read .nvmrc
35-
id: node_version
36-
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
37-
38-
- name: Setup node
39-
uses: actions/setup-node@v1
40-
with:
41-
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
42-
43-
- run: yarn install --frozen-lockfile
44-
4519
- run: yarn lint
20+
- run: yarn build
21+
env:
22+
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}
23+
PRIVATE_KEY_ID: ${{secrets.PRIVATE_KEY_ID}}
24+
PROJECT_ID: ${{secrets.PROJECT_ID}}
25+
CLIENT_EMAIL: ${{secrets.CLIENT_EMAIL}}

0 commit comments

Comments
 (0)