ci: fix npm dependencies + use build script
This commit is contained in:
parent
1780f7c57d
commit
0f1bd8f486
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -84,15 +84,9 @@ jobs:
|
|||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
run: |
|
||||
echo "Installing NPM dependencies..."
|
||||
npm install --force
|
||||
npm install -g grunt-cli
|
||||
cd bootstrap
|
||||
npm install
|
||||
echo "Generating bootstrap files..."
|
||||
grunt dist
|
||||
cp -r dist/. ../ietf/static/ietf/bootstrap/
|
||||
cd ..
|
||||
echo "Running build script..."
|
||||
chmod +x ./dev/deploy/build.sh
|
||||
sh ./dev/deploy/build.sh
|
||||
echo "Setting version $PKG_VERSION_STRICT..."
|
||||
sed -i -r -e "s/^__version__ += '.*'$/__version__ = '$PKG_VERSION_STRICT'/" ietf/__init__.py
|
||||
echo "Build release tarball..."
|
||||
|
|
12
dev/deploy/build.sh
Normal file
12
dev/deploy/build.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Installing NPM dependencies..."
|
||||
npm install
|
||||
|
||||
echo "Building bootstrap 3 assets..."
|
||||
cd bootstrap
|
||||
npm install -g grunt-cli
|
||||
npm install
|
||||
grunt dist
|
||||
cp -r dist/. ../ietf/static/ietf/bootstrap/
|
||||
cd ..
|
23975
package-lock.json
generated
23975
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"browserlist": "latest",
|
||||
"cypress": "9.0.0",
|
||||
"cypress-real-events": "1.5.1"
|
||||
"cypress": "9.5.1",
|
||||
"cypress-real-events": "1.7.0",
|
||||
"npm-check-updates": "12.5.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"caniuse-lite": "1.0.30001282",
|
||||
"@ietf-tools/datatracker-bs3": "latest"
|
||||
"caniuse-lite": "1.0.30001314"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue