Compare commits
25
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b93bef4eea | ||
|
|
6604153812 | ||
|
|
e623cc642a | ||
|
|
42f7b8269e | ||
|
|
1017e1aac2 | ||
|
|
a23b71890b | ||
|
|
fb850ff26d | ||
|
|
b9f294d179 | ||
|
|
03a687b3ea | ||
|
|
86a639dee9 | ||
|
|
da5620171e | ||
|
|
89d51e7db7 | ||
|
|
de8e4e05e9 | ||
|
|
0fd3bb8b3a | ||
|
|
c39513f24d | ||
|
|
6a5d96102d | ||
|
|
19c09653fe | ||
|
|
32a248077f | ||
|
|
72ab317bb0 | ||
|
|
07a79ea7e9 | ||
|
|
0d92579e13 | ||
|
|
cb6613e2ee | ||
|
|
9e10e44fed | ||
|
|
d3c1338eac | ||
|
|
01cb041e1d |
@@ -18,7 +18,7 @@ jobs:
|
|||||||
name: release
|
name: release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||||
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
|
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
|
||||||
with:
|
with:
|
||||||
cache: npm
|
cache: npm
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Run analysis
|
- name: Run analysis
|
||||||
@@ -25,12 +25,12 @@ jobs:
|
|||||||
results_format: sarif
|
results_format: sarif
|
||||||
publish_results: true
|
publish_results: true
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
|
||||||
with:
|
with:
|
||||||
name: SARIF file
|
name: SARIF file
|
||||||
path: results.sarif
|
path: results.sarif
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
- name: Upload to code-scanning
|
- name: Upload to code-scanning
|
||||||
uses: github/codeql-action/upload-sarif@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
|
uses: github/codeql-action/upload-sarif@04daf014b50eaf774287bf3f0f1869d4b4c4b913 # v2.21.7
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|||||||
@@ -20,14 +20,15 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version:
|
node-version:
|
||||||
- 18.0.0
|
- 18.17.0
|
||||||
- 19
|
- 20.6.1
|
||||||
|
- 20
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||||
- run: git config --global user.name github-actions
|
- run: git config --global user.name github-actions
|
||||||
- run: git config --global user.email github-actions@github.com
|
- run: git config --global user.email github-actions@github.com
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
@@ -46,7 +47,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test_matrix
|
needs: test_matrix
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||||
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
|
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
|
||||||
with:
|
with:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
|
|||||||
@@ -84,6 +84,11 @@
|
|||||||
- `verifyRelease`: Checks and warns (does not error by default) if the version numbers found on maven central and within the Git project differ by quite a bit
|
- `verifyRelease`: Checks and warns (does not error by default) if the version numbers found on maven central and within the Git project differ by quite a bit
|
||||||
- `prepare`: Changes the version number in the `pom.xml` (or all `pom.xml` files in maven projects with multiple `pom.xml` files) and optionally creates a commit with this version number and pushes it to `master`
|
- `prepare`: Changes the version number in the `pom.xml` (or all `pom.xml` files in maven projects with multiple `pom.xml` files) and optionally creates a commit with this version number and pushes it to `master`
|
||||||
- `publish`: Runs `mvn deploy` to deploy to maven central and optionally will update to next snapshot version and merge changes to development branch
|
- `publish`: Runs `mvn deploy` to deploy to maven central and optionally will update to next snapshot version and merge changes to development branch
|
||||||
|
- [maven-semantic-release](https://github.com/terrestris/maven-semantic-release) (alternative version)
|
||||||
|
- `verifyConditions`: Verifies that the `mvn` command exists.
|
||||||
|
- `prepare`: Changes version number in `pom.xml` and optionally in all child modules.
|
||||||
|
- `publish`: Runs one of the mvn targets `deploy`, `package jib:build` or `deploy jib:build`.
|
||||||
|
- `success`: Optionally sets new snapshot version and commits it.
|
||||||
- [semantic-release-ado](https://github.com/lluchmk/semantic-release-ado)
|
- [semantic-release-ado](https://github.com/lluchmk/semantic-release-ado)
|
||||||
- `prepare`: Stores the version number as an Azure DevOps pipeline variable available to downstream steps on the job
|
- `prepare`: Stores the version number as an Azure DevOps pipeline variable available to downstream steps on the job
|
||||||
- [gradle-semantic-release](https://github.com/KengoTODA/gradle-semantic-release-plugin)
|
- [gradle-semantic-release](https://github.com/KengoTODA/gradle-semantic-release-plugin)
|
||||||
|
|||||||
Generated
+4177
-562
File diff suppressed because it is too large
Load Diff
+12
-10
@@ -8,6 +8,7 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"test/**/*.test.js"
|
"test/**/*.test.js"
|
||||||
],
|
],
|
||||||
|
"failFast": true,
|
||||||
"nodeArguments": [
|
"nodeArguments": [
|
||||||
"--loader=testdouble",
|
"--loader=testdouble",
|
||||||
"--no-warnings"
|
"--no-warnings"
|
||||||
@@ -26,12 +27,12 @@
|
|||||||
"Matt Travi <npm@travi.org> (https://matt.travi.org/)"
|
"Matt Travi <npm@travi.org> (https://matt.travi.org/)"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@semantic-release/commit-analyzer": "^10.0.0",
|
"@semantic-release/commit-analyzer": "^11.0.0-beta.3",
|
||||||
"@semantic-release/error": "^4.0.0",
|
"@semantic-release/error": "^4.0.0",
|
||||||
"@semantic-release/github": "^9.0.0",
|
"@semantic-release/github": "^9.0.0",
|
||||||
"@semantic-release/npm": "^10.0.2",
|
"@semantic-release/npm": "^11.0.0",
|
||||||
"@semantic-release/release-notes-generator": "^11.0.0",
|
"@semantic-release/release-notes-generator": "^12.0.0-beta.2",
|
||||||
"aggregate-error": "^4.0.1",
|
"aggregate-error": "^5.0.0",
|
||||||
"cosmiconfig": "^8.0.0",
|
"cosmiconfig": "^8.0.0",
|
||||||
"debug": "^4.0.0",
|
"debug": "^4.0.0",
|
||||||
"env-ci": "^9.0.0",
|
"env-ci": "^9.0.0",
|
||||||
@@ -67,16 +68,17 @@
|
|||||||
"js-yaml": "4.1.0",
|
"js-yaml": "4.1.0",
|
||||||
"mockserver-client": "5.15.0",
|
"mockserver-client": "5.15.0",
|
||||||
"nock": "13.3.3",
|
"nock": "13.3.3",
|
||||||
"p-retry": "5.1.2",
|
"p-retry": "6.0.0",
|
||||||
"prettier": "3.0.2",
|
"prettier": "3.0.3",
|
||||||
"sinon": "15.2.0",
|
"sinon": "16.0.0",
|
||||||
"stream-buffers": "3.0.2",
|
"stream-buffers": "3.0.2",
|
||||||
"tempy": "3.1.0",
|
"tempy": "3.1.0",
|
||||||
"testdouble": "3.18.0"
|
"testdouble": "3.19.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": "^18.17 || >=20.6.1"
|
||||||
},
|
},
|
||||||
|
"exports": "./index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"bin",
|
"bin",
|
||||||
"docs",
|
"docs",
|
||||||
@@ -98,7 +100,7 @@
|
|||||||
"version"
|
"version"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "index.js",
|
"main": "./index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"c8": {
|
"c8": {
|
||||||
"include": [
|
"include": [
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export async function initGit(withRemote) {
|
|||||||
*
|
*
|
||||||
* @param {Boolean} withRemote `true` to create a shallow clone of a bare repository.
|
* @param {Boolean} withRemote `true` to create a shallow clone of a bare repository.
|
||||||
* @param {String} [branch='master'] The branch to initialize.
|
* @param {String} [branch='master'] The branch to initialize.
|
||||||
* @return {String} The path of the clone if `withRemote` is `true`, the path of the repository otherwise.
|
* @return {Promise<Object>} The path of the clone if `withRemote` is `true`, the path of the repository otherwise.
|
||||||
*/
|
*/
|
||||||
export async function gitRepo(withRemote, branch = "master") {
|
export async function gitRepo(withRemote, branch = "master") {
|
||||||
let { cwd, repositoryUrl } = await initGit(withRemote);
|
let { cwd, repositoryUrl } = await initGit(withRemote);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ let env;
|
|||||||
|
|
||||||
// Environment variables used only for the local npm command used to do verification
|
// Environment variables used only for the local npm command used to do verification
|
||||||
const npmTestEnv = {
|
const npmTestEnv = {
|
||||||
...process.env,
|
...processEnvWithoutGitHubActionsVariables,
|
||||||
...npmRegistry.authEnv(),
|
...npmRegistry.authEnv(),
|
||||||
npm_config_registry: npmRegistry.url,
|
npm_config_registry: npmRegistry.url,
|
||||||
};
|
};
|
||||||
@@ -516,8 +516,8 @@ test("Pass options via CLI arguments", async (t) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("Run via JS API", async (t) => {
|
test("Run via JS API", async (t) => {
|
||||||
td.replace("../lib/logger", { log: () => {}, error: () => {}, stdout: () => {} });
|
await td.replaceEsm("../lib/logger", null, { log: () => {}, error: () => {}, stdout: () => {} });
|
||||||
td.replace("env-ci", () => ({ isCi: true, branch: "master", isPr: false }));
|
await td.replaceEsm("env-ci", null, () => ({ isCi: true, branch: "master", isPr: false }));
|
||||||
const semanticRelease = (await import("../index.js")).default;
|
const semanticRelease = (await import("../index.js")).default;
|
||||||
const packageName = "test-js-api";
|
const packageName = "test-js-api";
|
||||||
const owner = "git";
|
const owner = "git";
|
||||||
|
|||||||
Reference in New Issue
Block a user