build: use semantic-release to automate release (#2830)

* Link to previous deploys of releases instead of versioned docs

* Use semantic-release to automate release

* Use an environment for release job

* Run release only on push event
This commit is contained in:
ylemkimon
2021-03-22 15:30:57 +09:00
committed by GitHub
parent 7300952ae1
commit 3568cb9c99
76 changed files with 5072 additions and 14910 deletions

View File

@@ -1,10 +1,11 @@
// Update badge and CDN urls and subresource integrity hashes
// Usage: node update-sri.js <VERSION> FILES...
// To use the version from package.json, pass `package` as VERSION
// To check SRI hashes, pass `check` as VERSION
const fs = require("fs-extra");
const sriToolbox = require("sri-toolbox");
const version = process.argv[2];
const version = process.argv[2] === "package" ? require("./package.json").version : process.argv[2];
Promise.all(process.argv.slice(3).map(file =>
fs.readFile(file, "utf8")