Skip to content

Commit

Permalink
Temporarily depend on experimental GL JS branch
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Aug 21, 2024
1 parent f9a8682 commit 0894b4b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
build-preview:
runs-on: ubuntu-latest
steps:
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x
- name: Checkout Main Branch 🛎️
uses: actions/checkout@v4
with:
Expand All @@ -42,13 +42,21 @@ jobs:
- name: Install and Build PR Branch 🔧
# TODO: when we move shieldlib to its own repo, move shieldlib docs CI also
run: |
npm ci --include=dev
npm install --include=dev
git clone https://github.com/1ec5/maplibre-gl-js.git --branch=complex-text-50 --depth=1
cd maplibre-gl-js/
npm install --include=dev
npm run build-dist
cd ../
npm link ./maplibre-gl-js/
cd shieldlib/
npm link ../maplibre-gl-js
cd ../
npm run build
npm run style
npm run shields
cp src/configs/config.aws.js src/config.js
mkdir -p dist/shield-docs
cp -r shieldlib/docs/* dist/shield-docs
mv dist ..
working-directory: pr-branch
- name: Capture main branch usage statistics
Expand Down
2 changes: 1 addition & 1 deletion 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 @@ -11,7 +11,7 @@
"shieldlib"
],
"scripts": {
"build:shieldlib": "cd shieldlib && run-s build:code docs",
"build:shieldlib": "cd shieldlib && run-s build:code",
"build:code": "tsx scripts/build",
"build": "run-s clean-build sprites build:shieldlib build:code taginfo status_map",
"clean": "run-s clean:shieldlib clean:code clean-download clean-build",
Expand Down

0 comments on commit 0894b4b

Please sign in to comment.