diff --git a/THORIUM_BUILD.md b/THORIUM_BUILD.md new file mode 100644 index 00000000000000..42b5b8f60c7674 --- /dev/null +++ b/THORIUM_BUILD.md @@ -0,0 +1,44 @@ + +``` +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 commit -m "build $COMMIT_HASH" + +git push origin build + +git checkout master2 -f + +git prune +```