Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy
name: build-and-deploy
on:
pull_request:
branches:
Expand All @@ -10,20 +10,23 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🍔🍟🥤
uses: actions/checkout@v2.3.1
- uses: actions/checkout@v2.3.1
with:
persist-credentials: false

- name: Use Node.js 😂
uses: actions/setup-node@v1
- uses: actions/setup-node@v1
with:
node-version: '16.x'

- run: git submodule update --init --recommend-shallow

- run: npm ci
- run: npm test
- run: npm run build-docs

- run: npm run generate
- name: Check generated file is up-to-date with gpuweb submodule (`npm run generate` to fix this)
run: git update-index --really-refresh && git diff-index --quiet HEAD

- name: Deploy 📦
if: ${{ success() && github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@3.6.2
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "gpuweb"]
path = gpuweb
url = https://github.com/gpuweb/gpuweb.git
[submodule "third_party/bikeshed-to-ts"]
path = third_party/bikeshed-to-ts
url = https://github.com/toji/bikeshed-to-ts.git
95 changes: 25 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"format": "prettier -w dist/index.d.ts"
},
"devDependencies": {
"bikeshed-to-ts": "github:toji/bikeshed-to-ts",
"bikeshed-to-ts": "file:third_party/bikeshed-to-ts",
"prettier": "^2.2.1"
}
}
1 change: 1 addition & 0 deletions third_party/bikeshed-to-ts
Submodule bikeshed-to-ts added at bb9da0
Loading