Skip to content

Commit

Permalink
adapt github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sguimmara committed Sep 14, 2023
1 parent bce0386 commit 4013b4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Build
run: |
Expand All @@ -42,6 +43,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Build
run: |
Expand All @@ -62,9 +64,10 @@ jobs:
fetch-depth: 2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm install
Expand Down Expand Up @@ -97,9 +100,10 @@ jobs:
fetch-depth: 2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"start": "vite",
"prepack": "shx rm -fr dist/ && shx mkdir dist && npx copyfiles -u 1 './src/**/*.wgsl' dist && node scripts/prepare-package.mjs && npm run build",
"prepare": "husky install",
"pages": "npm run prepack && cd examples && npx vite build",
"pages": "npm run prepack && cd examples && npx vite build --base=https://sguimmara.github.io/hammerhead.gl/",
"prepare-examples": "node scripts/generate-example-index.mjs"
},
"devDependencies": {
Expand Down

0 comments on commit 4013b4d

Please sign in to comment.