Skip to content
20 changes: 15 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,27 @@ name: Build

on:
pull_request:
branches:
- main
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:

# Cancel older runs on the same PR/branch
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {} # lock everything by default (least-privilege)

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
contents: read # least-privilege for this job only
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v5 # Official GitHub action; intentionally not pinned so we stay on the latest v5.x

- name: Build
- name: Build docs
uses: Consensys/github-actions/docs-build@main
2 changes: 1 addition & 1 deletion .github/workflows/case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Case check action
uses: Consensys/docs-gha/docs-case-check@main
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
- main

jobs:

linkCheck:
name: Link Checking
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: LinkCheck
uses: Consensys/github-actions/docs-link-check@main
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Lint code
uses: ConsenSys/github-actions/docs-lint-all@main
uses: Consensys/github-actions/docs-lint-all@main

- name: Lint markdown
uses: ConsenSys/github-actions/docs-lint-markdown@main
uses: Consensys/github-actions/docs-lint-markdown@main
12 changes: 7 additions & 5 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: LinkCheck mdx files
uses: ConsenSys/github-actions/docs-link-check@main
uses: Consensys/github-actions/docs-link-check@main
with:
FILE_EXTENSION: mdx
MODIFIED_FILES_ONLY: no
Expand All @@ -31,9 +32,10 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: LinkCheck md files
uses: ConsenSys/github-actions/docs-link-check@main
uses: Consensys/github-actions/docs-link-check@main
with:
FILE_EXTENSION: md
MODIFIED_FILES_ONLY: no
Expand All @@ -45,7 +47,7 @@ jobs:
permissions: {} # zero scopes
steps:
- name: Slack Notification
uses: ConsenSys/github-actions/slack-notify@main
uses: Consensys/github-actions/slack-notify@main
with:
SLACK_CHANNEL: doc-ci-alerts
SLACK_COLOR: danger
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Vale
uses: Consensys/github-actions/docs-spelling-check@main
with:
FILEPATHS: "docs"

7 changes: 4 additions & 3 deletions .github/workflows/update-node-size.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Update Node Size Data

on:
Expand All @@ -11,12 +12,12 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Use Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: '20.9.0' # or whatever version you're using
node-version: '20'

- name: Install dependencies
run: npm ci
Expand Down
6 changes: 3 additions & 3 deletions README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- [Discord](https://discord.gg/linea)
- [X](https://x.com/LineaBuild)
- [Create an issue](https://github.com/Consensys/doc.linea/issues)
- [Fork repository](https://github.com/ConsenSys/doc.linea/fork)
- [Fork repository](https://github.com/Consensys/doc.linea/fork)

## What is Linea?

Expand All @@ -25,7 +25,7 @@ itself is published at [`docs.linea.build`](https://docs.linea.build/).

See something missing? Error in our documentation? Create an issue [here](https://github.com/Consensys/doc.linea/issues).

Alternatively, help us improve our documentation! [Fork our repo](https://github.com/ConsenSys/doc.linea/fork),
Alternatively, help us improve our documentation! [Fork our repo](https://github.com/Consensys/doc.linea/fork),
create a pull request, and tag us for review.

Alternatively, get in touch via the [community forum](https://community.linea.build/) or the
Expand All @@ -36,7 +36,7 @@ Please follow these steps if you wish to contribute:
[link to it in your pull request](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).
This is particularly important if you are an ecosystem contributor — submitting your details in an
issue first will make it much easier for our docs team to process your contributions.
2. [Fork our repo](https://github.com/ConsenSys/doc.linea/fork) so that you're able to work on it.
2. [Fork our repo](https://github.com/Consensys/doc.linea/fork) so that you're able to work on it.
3. Make your changes, paying attention to our [contribution guidelines](#contribution-guidelines).
4. Review your changes locally. See our [guide](#running-locally) on previewing your
changes locally.
Expand Down
Loading