Kronos-Integration/kronos-service-manager-consul

View on GitHub
.github/workflows/update_package_lock.yml

Summary

Maintainability
Test Coverage
name: Update package lock
on:
  push:
    paths:
      - package.json
  schedule:
    - cron: 13 8 * * 6
jobs:
  update_package_lock:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version:
          - 22.10.0
        browser:
          - chrome
    steps:
      - name: checkout
        uses: actions/checkout@v4.2.1
      - name: prepare node
        uses: actions/setup-node@v4.0.4
        with:
          node-version: ${{ matrix.node-version }}
      - name: remove lock
        run: rm package-lock.json
      - name: install playwright
        run: npx playwright install
      - name: test
        run: npm install-test
        env:
          BROWSER: ${{ matrix.browser }}
      - name: create pull request
        uses: gr2m/create-or-update-pull-request-action@v1.10.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          path: package-lock.json
          title: Regenerate package lock
          body: bring lock in sync
          branch: package-lock
          labels: npm
          commit-message: "chore(deps): lock"