diff --git a/.releaserc.js b/.releaserc.js new file mode 100644 index 000000000..d10acf5b3 --- /dev/null +++ b/.releaserc.js @@ -0,0 +1,18 @@ +const UPSTREAM_VERSION = '5.0.1'; + +module.exports = { + repositoryUrl: 'https://github.com/auth0/protobuf.js.git', + tagFormat: `${UPSTREAM_VERSION}-auth0-\${version}`, + branches: ['master'], + plugins: [ + '@semantic-release/commit-analyzer', + '@semantic-release/release-notes-generator', + '@semantic-release/npm', + [ + '@semantic-release/exec', + { + prepareCmd: `npm version --no-git-tag-version ${UPSTREAM_VERSION}-auth0-\${nextRelease.version}`, + }, + ], + ], +}; diff --git a/README.md b/README.md index dd93f9c6e..27fa49e47 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ ![protobuf.js - Protocol Buffers for JavaScript. Finally.](https://raw.github.com/dcodeIO/protobuf.js/master/protobuf.png) ===================================== + +## Versioning + +This fork uses the hybrid version format `5.0.1-auth0-{internal-version}` (e.g., `5.0.1-auth0-1.0.0`), where `5.0.1` is the upstream version this fork is based on. + +--- + **Protocol Buffers** are a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more, originally designed at Google ([see](https://developers.google.com/protocol-buffers/docs/overview)). diff --git a/package.json b/package.json index 0a56954f5..705ba6c85 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,12 @@ }, "repository": { "type": "git", - "url": "https://github.com/dcodeIO/protobuf.js.git" + "url": "https://github.com/auth0/protobuf.js.git" }, "bugs": { - "url": "https://github.com/dcodeIO/protobuf.js/issues" + "url": "https://github.com/auth0/protobuf.js/issues" }, - "homepage": "https://github.com/dcodeIO/protobuf.js", + "homepage": "https://github.com/auth0/protobuf.js", "keywords": [ "net", "buffer", @@ -34,11 +34,16 @@ "yargs": "^3.10.0" }, "devDependencies": { - "testjs": "~1 >=1.0.4", + "@semantic-release/commit-analyzer": "^13.0.1", + "@semantic-release/exec": "^7.1.0", + "@semantic-release/npm": "^13.1.5", + "@semantic-release/release-notes-generator": "^14.0.3", + "closurecompiler": "~1", "fixture-stdout": "^0.2.1", + "jsdoc": "~3.3.0-alpha10", "metascript": ">=0.18 <1", - "closurecompiler": "~1", - "jsdoc": "~3.3.0-alpha10" + "semantic-release": "^25.0.3", + "testjs": "~1 >=1.0.4" }, "license": "Apache-2.0", "engines": {