Skip to content

Commit 2c6a451

Browse files
committed
Update the CI to make sure it works on PRs
1 parent 712e31e commit 2c6a451

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v2
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
2022

2123
- name: Use Node.js ${{ matrix.node-version }}
2224
uses: actions/setup-node@v1
@@ -27,7 +29,6 @@ jobs:
2729
run: npm install
2830

2931
- name: Check if dist is updated
30-
if: github.ref == 'refs/heads/master'
3132
run: |
3233
npm run build
3334
set -e # exit immediate if a command below returns a non-zero status

0 commit comments

Comments
 (0)