Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,29 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Read node version from .nvmrc
id: nvmrc
uses: browniebroke/read-nvmrc-action@v1

- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: "${{ steps.nvmrc.outputs.node_version }}"

- uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
cache: "npm"
- run: npm ci

- name: Generate ESLint report
run: npm run lint -- --output-file eslint_report.json --format json
continue-on-error: true
- name: Annotate report
uses: ataylorme/eslint-annotate-action@1.1.2
uses: ataylorme/eslint-annotate-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "eslint_report.json"
continue-on-error: true
- name: Upload ESLint report
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: eslint_report.json
path: eslint_report.json
40 changes: 7 additions & 33 deletions .github/workflows/update-patterns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: master
submodules: true
Expand All @@ -19,20 +19,10 @@ jobs:
id: nvmrc
uses: browniebroke/read-nvmrc-action@v1

- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: "${{ steps.nvmrc.outputs.node_version }}"

- uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
cache: "npm"
- run: npm ci

- name: Update pattern submodule
Expand All @@ -46,32 +36,16 @@ jobs:
run: npm run prettier

- name: Add and commit any changes
uses: EndBug/add-and-commit@v5
uses: EndBug/add-and-commit@v9
with:
# The arguments for the `git add` command (see the paragraph below for more info)
# Default: '.'
# The arguments for the `git add` command
add: "library"

# The name of the user that will be displayed as the author of the commit
# Default: author of the commit that triggered the run
author_name: decentpattterns community

# The email of the user that will be displayed as the author of the commit
# Default: author of the commit that triggered the run
# author_email: [email protected]

# Name of the branch to use, if different from the one that triggered the workflow
# Default: the branch that triggered the run
branch: master

# The message for the commit
# Default: 'Commit from GitHub Actions (name of the workflow)'
message: "Update pattern library"

# Whether to use the --signoff option on `git commit` (only `true` and `false` are accepted)
# Default: false
signoff: true

env:
# This is necessary in order to push a commit to the repo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
# Whether to use the --signoff option on `git commit`
github_token: ${{ secrets.GITHUB_TOKEN }}
Loading