2022-07-25 12:34:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Packs puppeteer using npm and moves the archive file to docker/puppeteer-latest.tgz.
|
|
|
|
# Expected cwd: project root directory.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-10-05 12:17:03 +00:00
|
|
|
cd docker
|
2022-07-25 12:34:01 +00:00
|
|
|
|
2022-10-05 12:17:03 +00:00
|
|
|
npm pack --workspace puppeteer --workspace puppeteer-core --pack-destination .
|
2022-07-25 12:34:01 +00:00
|
|
|
|
2022-10-05 12:17:03 +00:00
|
|
|
rm -f puppeteer-core-latest.tgz
|
|
|
|
rm -f puppeteer-latest.tgz
|
|
|
|
|
|
|
|
mv puppeteer-core-*.tgz puppeteer-core-latest.tgz
|
|
|
|
mv puppeteer-[0-9]*.tgz puppeteer-latest.tgz
|