Skip to content

Commit

Permalink
ci: make github actions happy
Browse files Browse the repository at this point in the history
  • Loading branch information
frantic1048 committed May 7, 2022
1 parent 6296c40 commit 449e48b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI
on:
push:
branches: [main]
- push
- pull_request

jobs:
build:
Expand All @@ -10,9 +10,28 @@ jobs:
- uses: nschloe/action-cached-lfs-checkout@v1

- uses: actions/setup-node@v3.1.1
with:
node-version: 16

- name: Init deps
run: pnpm --frozen-lockfile
- uses: pnpm/action-setup@v2.1.0
with:
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"build": "webpack build --config webpack.config.prod.js",
"dev": "webpack serve --open --config webpack.config.dev.js"
},
"packageManager": "pnpm@7.0.0",
"engines": {
"node": ">=16"
},
"dependencies": {
"csx": "10.0.2",
"cytoscape": "3.21.1",
Expand Down

0 comments on commit 449e48b

Please sign in to comment.