From 22713073c2117e674216c60e1d674a851d76f03e Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 30 Jun 2024 14:45:55 +0200 Subject: [PATCH] Remove the `on_release.js` file Publishing a release is now ported to GitHub Actions in the PDF.js repository, so the bots should no longer have this functionality. --- on_release.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 on_release.js diff --git a/on_release.js b/on_release.js deleted file mode 100644 index 286c4a7..0000000 --- a/on_release.js +++ /dev/null @@ -1,25 +0,0 @@ -var botio = require(process.env['BOTIO_MODULE']); -var path = require('path'); -require('shelljs/global'); - -try { - var jobInfo = JSON.parse(process.env['BOTIO_JOBINFO']); - var reason = 'See mozilla/pdf.js@' + jobInfo.head_sha; - process.env['PDFJS_UPDATE_REASON'] = reason; - echo('>> Setting reason to: ' + reason); -} catch (_) {} - -exec('npm install', {async:true}, function () { - -// -// Publish library to pdfjs-dist -// -exec('npx gulp dist', {async:true}, function() { - -cd('build/dist'); -exec('git push --tags git@github.com:mozilla/pdfjs-dist.git master'); -exec('npm publish'); -cd('../..'); - -}); // npx gulp dist -}); // npm install