Skip to content

Commit 3b3e744

Browse files
fix(posts): fix broken npm links
- 2018-08-14-package-json-version.md - 2020-12-11-migrate-travis-ci-to-github-actions-nodejs-workflow.md ``` External link https://docs.npmjs.com/cli-commands/run-script.html failed (status code 404) ```
1 parent 7ffe479 commit 3b3e744

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

_posts/2018/2018-08-14-package-json-version.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Print out all the package.json vars:
3939
npm run env | grep npm_package_
4040
```
4141

42-
Get the "version" using a [run-script](https://docs.npmjs.com/cli/commands/npm-run-script):
42+
Get the "version" using a [run-script](https://docs.npmjs.com/cli/commands/npm-run):
4343

4444
```js
4545
// package.json
@@ -69,7 +69,7 @@ jq -r .version package.json
6969

7070
> The `-r` option outputs the **raw** string (so it's `1.2.3` instead of `"1.2.3"`).
7171
72-
To get the "version" using a [run-script](https://docs.npmjs.com/cli/commands/npm-run-script):
72+
To get the "version" using a [run-script](https://docs.npmjs.com/cli/commands/npm-run):
7373

7474
```js
7575
// package.json
@@ -97,7 +97,7 @@ Pass the [`-p`](https://nodejs.org/api/cli.html#cli_p_print_script) option to pr
9797
node -p "require('./package').version"
9898
```
9999

100-
To get the "version" using a [run-script](https://docs.npmjs.com/cli/commands/npm-run-script):
100+
To get the "version" using a [run-script](https://docs.npmjs.com/cli/commands/npm-run):
101101

102102
```js
103103
// package.json
@@ -119,7 +119,7 @@ To match `package.json` against the regex pattern `/"version": ".+"/` and print
119119
awk -F'"' '/"version": ".+"/{ print $4; exit; }' package.json
120120
```
121121

122-
To get the "version" using a [run-script](https://docs.npmjs.com/cli/commands/npm-run-script):
122+
To get the "version" using a [run-script](https://docs.npmjs.com/cli/commands/npm-run):
123123

124124
```js
125125
// package.json

_posts/2020/2020-12-11-migrate-travis-ci-to-github-actions-nodejs-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ steps:
182182

183183
### steps.run
184184

185-
[`steps.run`](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun) runs the commands. The commands can be [npm scripts](https://docs.npmjs.com/cli/v6/commands/npm-run-script/) from `package.json` or other bash commands.
185+
[`steps.run`](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstepsrun) runs the commands. The commands can be [npm scripts](https://docs.npmjs.com/cli/commands/npm-run) from `package.json` or other bash commands.
186186

187187
```yml
188188
steps:

0 commit comments

Comments
 (0)