Compare commits

...
18 Commits
Author SHA1 Message Date
cb45d27726 fix(deps): update dependency semver-diff to v4 (#1915)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-08 00:57:59 -06:00
f914c1ed86 fix(deps): update dependency cosmiconfig to v8
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-07 15:40:20 -08:00
c4da008e29 fix(deps): update dependency hosted-git-info to v6
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-07 15:39:59 -08:00
b707475b85 chore(deps): update dependency sinon to v15 (#2653)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-07 11:27:44 +00:00
b9579349ca chore(deps): update dependency fs-extra to v11 (#2650)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-07 08:39:35 +00:00
4b74f005c4 chore(deps): update dependency ava to v5 (#2649)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-07 05:49:16 +00:00
bbb5e5ade6 chore(deps): update dependency testdouble to v3.16.8 (#2646)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-07 02:25:38 +00:00
a1e0467f04 chore(deps): update dependency sinon to v14.0.2 (#2645)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-06 23:31:08 +00:00
Matt TraviandGitHub b9b5c7689f Merge pull request #2607 from semantic-release/beta 2023-01-06 13:54:06 -06:00
Matt Travi 91bcb6b988 Merge branch 'master' of github.com:semantic-release/semantic-release into beta 2023-01-06 13:49:45 -06:00
0716d62fd1 build(deps): bump json5 and tsconfig-paths (#2643)
Bumps [json5](https://github.com/json5/json5) and [tsconfig-paths](https://github.com/dividab/tsconfig-paths). These dependencies needed to be updated together.

Updates `json5` from 2.2.0 to 2.2.3
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.0...v2.2.3)

Updates `tsconfig-paths` from 3.9.0 to 3.10.1
- [Release notes](https://github.com/dividab/tsconfig-paths/releases)
- [Changelog](https://github.com/dividab/tsconfig-paths/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dividab/tsconfig-paths/compare/v3.9.0...v3.10.1)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
- dependency-name: tsconfig-paths
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-02 21:52:25 -06:00
Matt Travi caa8b95f7b test(integration): used token auth for registry interactions rather than legacy auth 2022-12-17 22:53:11 -06:00
Matt Travi 097351304e Merge branch 'master' of github.com:semantic-release/semantic-release into beta 2022-12-16 16:47:35 -06:00
fa241a2a06 build(deps): bump minimatch from 3.0.4 to 3.1.2
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-12 08:25:54 -08:00
Matt Travi ba05e08303 docs(node-version): raised the minimum version to align with engines.node 2022-12-11 08:57:02 -06:00
Matt Travi eddbbb812b Merge branch 'master' of github.com:semantic-release/semantic-release into beta 2022-12-09 14:40:09 -06:00
aa0c9d6a75 build(deps): bump decode-uri-component from 0.2.0 to 0.2.2
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 15:33:53 -08:00
Matt TraviandGitHub 7365012002 chore(overrides): removed the overrides definition (#2634) 2022-12-06 21:47:11 -06:00
5 changed files with 1038 additions and 408 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Node version requirement
**semantic-release** is written using the latest [ECMAScript 2017](https://www.ecma-international.org/publications/standards/Ecma-262.htm) features, without transpilation which **requires Node version 14.17 or higher**.
**semantic-release** is written using the latest [ECMAScript 2017](https://www.ecma-international.org/publications/standards/Ecma-262.htm) features, without transpilation which **requires Node version 18.0.0 or higher**.
**semantic-release** is meant to be used in a CI environment as a development support tool, not as a production dependency.
Therefore, the only constraint is to run the `semantic-release` in a CI environment providing version of Node that meets our version requirement.
+1003 -378
View File
File diff suppressed because it is too large Load Diff
+7 -10
View File
@@ -32,7 +32,7 @@
"@semantic-release/npm": "^9.0.0",
"@semantic-release/release-notes-generator": "^10.0.0",
"aggregate-error": "^4.0.1",
"cosmiconfig": "^7.0.0",
"cosmiconfig": "^8.0.0",
"debug": "^4.0.0",
"env-ci": "^8.0.0",
"execa": "^6.1.0",
@@ -41,7 +41,7 @@
"get-stream": "^6.0.0",
"git-log-parser": "^1.2.0",
"hook-std": "^3.0.0",
"hosted-git-info": "^5.1.0",
"hosted-git-info": "^6.0.0",
"lodash-es": "^4.17.21",
"marked": "^4.1.0",
"marked-terminal": "^5.1.1",
@@ -51,32 +51,29 @@
"read-pkg-up": "^9.1.0",
"resolve-from": "^5.0.0",
"semver": "^7.3.2",
"semver-diff": "^3.1.1",
"semver-diff": "^4.0.0",
"signale": "^1.2.1",
"yargs": "^17.5.1"
},
"devDependencies": {
"ava": "4.3.3",
"ava": "5.1.0",
"c8": "7.12.0",
"clear-module": "4.1.2",
"codecov": "3.8.3",
"delay": "5.0.0",
"dockerode": "3.3.4",
"file-url": "^4.0.0",
"fs-extra": "^10.1.0",
"fs-extra": "^11.0.0",
"got": "^12.5.0",
"js-yaml": "4.1.0",
"mockserver-client": "5.14.0",
"nock": "13.2.9",
"p-retry": "^5.1.1",
"prettier": "^2.7.1",
"sinon": "14.0.0",
"sinon": "15.0.1",
"stream-buffers": "3.0.2",
"tempy": "^3.0.0",
"testdouble": "3.16.6"
},
"overrides": {
"semantic-release": "20.0.0-beta.1"
"testdouble": "3.16.8"
},
"engines": {
"node": ">=18"
+14 -7
View File
@@ -6,7 +6,7 @@ import got from 'got';
import delay from 'delay';
import pRetry from 'p-retry';
const IMAGE = 'verdaccio/verdaccio:4';
const IMAGE = 'verdaccio/verdaccio:5';
const REGISTRY_PORT = 4873;
const REGISTRY_HOST = 'localhost';
const NPM_USERNAME = 'integration';
@@ -14,7 +14,7 @@ const NPM_PASSWORD = 'suchsecure';
const NPM_EMAIL = 'integration@test.com';
const docker = new Docker();
const __dirname = dirname(fileURLToPath(import.meta.url));
let container;
let container, npmToken;
/**
* Download the `npm-registry-docker` Docker image, create a new container and start it.
@@ -55,16 +55,23 @@ export async function start() {
email: NPM_EMAIL,
},
});
// Create token for user
({token: npmToken} = await got(`http://${REGISTRY_HOST}:${REGISTRY_PORT}/-/npm/v1/tokens`, {
username: NPM_USERNAME,
password: NPM_PASSWORD,
method: 'POST',
headers: {'content-type': 'application/json'},
json: {password: NPM_PASSWORD, readonly: false, cidr_whitelist: []}
}).json());
}
export const url = `http://${REGISTRY_HOST}:${REGISTRY_PORT}/`;
export const authEnv = {
export const authEnv = () => ({
npm_config_registry: url, // eslint-disable-line camelcase
NPM_USERNAME,
NPM_PASSWORD,
NPM_EMAIL,
};
NPM_TOKEN: npmToken,
});
/**
* Stop and remote the `npm-registry-docker` Docker container.
+13 -12
View File
@@ -31,23 +31,13 @@ const { readJson, writeJson } = fsExtra;
// Environment variables used with semantic-release cli (similar to what a user would setup)
const { GITHUB_ACTION, GITHUB_ACTIONS, GITHUB_TOKEN, ...processEnvWithoutGitHubActionsVariables } = process.env;
const env = {
...processEnvWithoutGitHubActionsVariables,
...npmRegistry.authEnv,
CI: "true",
GH_TOKEN: gitbox.gitCredential,
TRAVIS: "true",
TRAVIS_BRANCH: "master",
TRAVIS_PULL_REQUEST: "false",
GITHUB_API_URL: mockServer.url,
};
let env;
// Environment variables used only for the local npm command used to do verification
const npmTestEnv = {
...process.env,
...npmRegistry.authEnv,
...npmRegistry.authEnv(),
npm_config_registry: npmRegistry.url,
LEGACY_TOKEN: Buffer.from(`${env.NPM_USERNAME}:${env.NPM_PASSWORD}`, "utf8").toString("base64"),
};
const cli = path.resolve("./bin/semantic-release.js");
@@ -57,6 +47,17 @@ const pluginLogEnv = path.resolve("./test/fixtures/plugin-log-env");
test.before(async () => {
await Promise.all([gitbox.start(), npmRegistry.start(), mockServer.start()]);
env = {
...processEnvWithoutGitHubActionsVariables,
...npmRegistry.authEnv(),
CI: "true",
GH_TOKEN: gitbox.gitCredential,
TRAVIS: "true",
TRAVIS_BRANCH: "master",
TRAVIS_PULL_REQUEST: "false",
GITHUB_API_URL: mockServer.url,
};
});
test.after.always(async () => {