Merge pull request #245 from PoliNetworkOrg/dependabot/npm_and_yarn/v… #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check PR | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
cd: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [18] | |
steps: | |
- name: 🛎 Checkout | |
uses: actions/checkout@master | |
- name: 🏗 Setup node env | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- name: 📦 Cache node_modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: 👨🏻💻 Install dependencies (2) | |
run: yarn | |
- name: 👨🏻💻 Install dependencies (3) | |
run: yarn install | |
- name: 👨🏭️ Generate | |
run: npm run generate | |