forked from Sparticuz/chrome-aws-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathincrementVersion
executable file
·28 lines (21 loc) · 1.07 KB
/
incrementVersion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# incrementVersion.sh OLD_VERSION NEW_VERSION
# Example: incrementVersion 16.1.0 16.2.0
OLD_VERSION=$1
NEW_VERSION=$2
sed -i "s/$OLD_VERSION/$NEW_VERSION/" _/ansible/inventory.ini
sed -i "s/\"puppeteer-core\": \"$OLD_VERSION\"/\"puppeteer-core\": \"$NEW_VERSION\"/g" package.json
sed -i "s/puppeteer-core@$OLD_VERSION/puppeteer-core@$NEW_VERSION/" Makefile
echo "Version number incremented $OLD_VERSION -> $NEW_VERSION.
1) Check for a new version of 'chromium' included with 'puppeteer':
a) https://github.com/puppeteer/puppeteer/blob/main/src/revisions.ts
b) https://cr-rev.appspot.com/_ah/api/crrev/v1/redirect/#######
c) https://omahaproxy.appspot.com/
2) If the 'chromium' version has been incremented, please compile a new version of 'chromium':
a) cd _/ansible && make chromium
b) Rename the new chromium binary
3) Please also update README.md#Versioning
4) Merge the PR and deploy to npm
a) Test the new version using 'npm run test'
b) Push the PR to Github and merge it
c) Checkout the main branch
d) Run 'npm version $NEW_VERSION' to publish the package to npm."