Skip to content

Commit eee8e07

Browse files
authored
Merge pull request #289 from semantic-release-plus/upstream-20220404
Upstream-20220404
2 parents 2004ffa + ec390dc commit eee8e07

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

docs/recipes/ci-configurations/circleci-workflows.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ Finally, we call our release job with a `requires` parameter so that `release` w
2222
```yaml
2323
version: 2.1
2424
orbs:
25-
node: circleci/node@4.5
25+
node: circleci/node@5.0.0
2626
jobs:
2727
release:
2828
executor: node/default
2929
steps:
3030
- checkout
31-
- node/install
32-
lts: true
3331
- node/install-packages # Install and automatically cache packages
3432
# Run optional required steps before releasing
3533
# - run: npm run build-script

docs/usage/ci-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Here is a few example of the CI services that can be used to achieve this:
1414
- [Wercker Workflows](http://devcenter.wercker.com/docs/workflows)
1515
- [GoCD Pipelines](https://docs.gocd.org/current/introduction/concepts_in_go.html#pipeline).
1616

17-
See [CI configuration recipes](../recipes/ci-configurations/README.md) for more details.
17+
See [CI configuration recipes](../recipes/ci-configurations#ci-configurations) for more details.
1818

1919
## Authentication
2020

@@ -45,6 +45,6 @@ See each plugin's documentation for the environment variables required.
4545

4646
The authentication token/credentials have to be made available in the CI service via environment variables.
4747

48-
See [CI configuration recipes](../recipes/ci-configurations/README.md) for more details on how to configure environment variables in your CI service.
48+
See [CI configuration recipes](../recipes/ci-configurations#ci-configurations) for more details on how to configure environment variables in your CI service.
4949

5050
**Note**: The environment variables `GH_TOKEN`, `GITHUB_TOKEN`, `GL_TOKEN` and `GITLAB_TOKEN` can be used for both the Git authentication and the API authentication required by [@semantic-release/github](https://github.com/semantic-release/github) and [@semantic-release/gitlab](https://github.com/semantic-release/gitlab).

lib/get-git-auth-url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports = async (context) => {
9999
try {
100100
debug('Verifying ssh auth by attempting to push to %s', repositoryUrl);
101101
await verifyAuth(repositoryUrl, branch.name, { cwd, env });
102-
} catch (_) {
102+
} catch {
103103
debug('SSH key auth failed, falling back to https.');
104104
const envVars = Object.keys(GIT_TOKENS).filter(
105105
(envVar) => !isNil(env[envVar])

lib/git.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async function fetch(repositoryUrl, branch, ciBranch, execaOptions) {
141141
],
142142
execaOptions
143143
);
144-
} catch (_) {
144+
} catch {
145145
await execa(
146146
'git',
147147
[
@@ -178,7 +178,7 @@ async function fetchNotes(repositoryUrl, execaOptions) {
178178
],
179179
execaOptions
180180
);
181-
} catch (_) {
181+
} catch {
182182
await execa(
183183
'git',
184184
[

test/helpers/mockserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function start() {
3838
factor: 2,
3939
}
4040
);
41-
} catch (_) {
41+
} catch {
4242
throw new Error(`Couldn't start mock-server after 2 min`);
4343
}
4444
}

test/helpers/npm-registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function start() {
4444
factor: 2,
4545
}
4646
);
47-
} catch (_) {
47+
} catch {
4848
throw new Error(`Couldn't start npm-registry-docker after 2 min`);
4949
}
5050

0 commit comments

Comments
 (0)