forked from mozilla/pdf.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
``` | ||
git checkout master2 | ||
# do some change | ||
git commit -a | ||
COMMIT_HASH=$(git rev-parse HEAD) | ||
git checkout --orphan build | ||
git rm -r --cached . | ||
npm i && npm run build | ||
git add build/gh-pages/build build/gh-pages/web build/types -f | ||
cat << EOF > package.json | ||
{ | ||
"name": "pdf.js", | ||
"type": "module", | ||
"types": "build/types/src/pdf.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/edrlab/pdf.js.git" | ||
}, | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
"scripts": { | ||
}, | ||
"license": "Apache-2.0" | ||
} | ||
EOF | ||
git add package.json | ||
git commit -m "build $COMMIT_HASH" | ||
git push origin build | ||
git checkout master2 -f | ||
git prune | ||
``` |