-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 905 Bytes
/
pr.yaml
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
name: Pull Request
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
env:
SKIP_YARN_COREPACK_CHECK: true
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com
cache: yarn
- name: Enable Corepack
run: corepack enable
- uses: actions/cache@v4
id: cache-node_modules
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
env:
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Test
run: yarn test
- name: Build
run: yarn build