Skip to content

Commit 8c9cbe0

Browse files
committed
ci: fix ci setup
1 parent 935d909 commit 8c9cbe0

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,15 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v2
9+
- uses: actions/checkout@v5
10+
- uses: actions/setup-node@v5
1111
with:
12-
node-version: 16
13-
- name: Cache Node.js modules
14-
uses: actions/cache@v2
15-
with:
16-
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
17-
key: ${{ runner.OS }}-node2-${{ hashFiles('**/package-lock.json') }}
18-
restore-keys: |
19-
${{ runner.OS }}-node2-
20-
${{ runner.OS }}-
12+
node-version: lts/*
13+
cache: npm
2114
- run: npm ci
2215
- run: npm run build --if-present
2316
- run: npm test
2417
- run: npm run lint
25-
- run: npm run alint
2618
- run: |
2719
mkdir -p public/integrations/powerbi
2820
cp dist/upsetjs_venn.pbiviz public/integrations/powerbi/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"start": "pbiviz start",
2222
"test": "echo no tests",
2323
"build:preview": "shx mv pbiviz.json pbiviz.bak.json && shx cp pbiviz_preview.json pbiviz.json && pbiviz package && shx rm pbiviz.json && shx mv pbiviz.bak.json pbiviz.json && shx mv dist/upSetJSVenn*.pbiviz dist/upsetjs_venn_preview.pbiviz",
24-
"build": "shx rm -rf dist && pbiviz package && shx cp dist/upSetJSVenn* dist/upsetjs_venn.pbiviz && npm run build:preview",
24+
"build": "shx rm -rf dist && pbiviz package && shx mv dist/upSetJSVenn* dist/upsetjs_venn.pbiviz",
2525
"lint": "npm run eslint && npm run prettier",
2626
"fix": "npm run eslint:fix && npm run prettier:write",
2727
"prettier:impl": "prettier --cache \"*\" \"*/**\"",

0 commit comments

Comments
 (0)