diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b427f16..3b638d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/update-patterns.yml b/.github/workflows/update-patterns.yml index ec7cbc5..8816238 100644 --- a/.github/workflows/update-patterns.yml +++ b/.github/workflows/update-patterns.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Check out Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: master submodules: true @@ -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 @@ -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: no-reply@decentpatterns.com - - # 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 }}