Skip to content

Commit d3a1b99

Browse files
authored
Branch was updated using the 'autoupdate branch' Actions workflow.
2 parents e9c09f1 + 8c64cae commit d3a1b99

File tree

5 files changed

+63
-45
lines changed

5 files changed

+63
-45
lines changed

.github/workflows/js-lint.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Lint JS
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches-ignore:
10+
- translations
11+
12+
jobs:
13+
see_if_should_skip:
14+
runs-on: ubuntu-latest
15+
16+
outputs:
17+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
18+
steps:
19+
- id: skip_check
20+
uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289
21+
with:
22+
cancel_others: 'false'
23+
github_token: ${{ github.token }}
24+
paths: '["**/*.js", "package*.json", ".github/workflows/js-lint.yml"]'
25+
26+
lint:
27+
runs-on: ubuntu-latest
28+
needs: see_if_should_skip
29+
if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
30+
steps:
31+
- name: Check out repo
32+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
33+
34+
- name: Setup node
35+
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
36+
with:
37+
node-version: 14.x
38+
39+
- name: Get npm cache directory
40+
id: npm-cache
41+
run: |
42+
echo "::set-output name=dir::$(npm config get cache)"
43+
44+
- name: Cache node modules
45+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
46+
with:
47+
path: ${{ steps.npm-cache.outputs.dir }}
48+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
49+
restore-keys: |
50+
${{ runner.os }}-node-
51+
52+
- name: Install dependencies
53+
run: npm ci
54+
55+
- name: Run linter
56+
run: npx standard
57+
58+
- name: Check dependencies
59+
run: npm run check-deps

.github/workflows/test.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -28,48 +28,7 @@ jobs:
2828
cancel_others: 'false'
2929
github_token: ${{ github.token }}
3030
paths: '[".github/workflows/test.yml",".node-version", ".npmrc", "app.json", "content/**", "data/**","lib/**", "Dockerfile", "feature-flags.json", "Gemfile", "Gemfile.lock", "middleware/**", "node_modules/**","package.json", "package-lock.json", "server.js", "tests/**", "translations/**", "Procfile", "webpack.config.js"]'
31-
lint:
32-
needs: see_if_should_skip
33-
runs-on: ubuntu-latest
34-
steps:
35-
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
36-
# Even if if doesn't do anything
37-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
38-
name: Check out repo
39-
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
40-
41-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
42-
name: Setup node
43-
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
44-
with:
45-
node-version: 14.x
46-
47-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
48-
name: Get npm cache directory
49-
id: npm-cache
50-
run: |
51-
echo "::set-output name=dir::$(npm config get cache)"
52-
53-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
54-
name: Cache node modules
55-
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
56-
with:
57-
path: ${{ steps.npm-cache.outputs.dir }}
58-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
59-
restore-keys: |
60-
${{ runner.os }}-node-
6131

62-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
63-
name: Install dependencies
64-
run: npm ci
65-
66-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
67-
name: Run linter
68-
run: npx standard
69-
70-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
71-
name: Check dependencies
72-
run: npm run check-deps
7332
test:
7433
needs: see_if_should_skip
7534
runs-on: ubuntu-latest

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Here's some information that might be helpful while working on a Docs PR:
129129

130130
- [Variables](/data/variables/README.md) - We use variables the same way we use reusables. Variables are for short strings of reusable text.
131131

132-
- [Liquid](/contribution/liquid-helpers.md) - We use liquid helpers to create different versions of our content.
132+
- [Liquid](/contributing/liquid-helpers.md) - We use liquid helpers to create different versions of our content.
133133

134134
- [Scripts](/script/README.md) - The scripts directory is the home for all of the scripts you can run locally.
135135

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you've found a problem, you can open an issue using a [template](https://gith
2727

2828
#### Solve an issue
2929

30-
If you have a solution to one of the open issues, you will need to fork the repository and submit a PR using the [template](https://github.com/github/docs/blob/main/CONTRIBUTING.md#pull-request-template) that is visible automatically in the pull request body. For more details about this process, please check out [Getting Started with Contributing](/CONTRIBUTING.md).
30+
If you have a solution to one of the open issues, you will need to fork the repository and submit a PR using the [template](https://github.com/github/docs/blob/main/CONTRIBUTING.md#pull-request-template) that is visible automatically in the pull request body. For more details about this process, please check out [Getting Started with Contributing](/CONTRIBUTING.md).
3131

3232
#### Join us in discussions
3333

content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ If your instance has subdomain isolation disabled:
183183
184184
```shell
185185
registry=https://<em>HOSTNAME</em>/_registry/npm/<em>OWNER</em>
186-
@<em>OWNER</em>:registry=<em>HOSTNAME</em>/_registry/npm/
187-
@<em>OWNER</em>:registry=<em>HOSTNAME</em>/_registry/npm/
186+
@<em>OWNER</em>:registry=https://<em>HOSTNAME</em>/_registry/npm/
187+
@<em>OWNER</em>:registry=https://<em>HOSTNAME</em>/_registry/npm/
188188
```
189189
{% endif %}
190190

0 commit comments

Comments
 (0)