Package lock maintenance #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Package lock maintenance | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write # for peter-evans/create-pull-request to create branch | |
| pull-requests: write # for peter-evans/create-pull-request to create a PR | |
| name: Bump transitional dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Create commit | |
| run: | | |
| rm package-lock.json | |
| npm install | |
| npm install # make sure package-lock.json is correct | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: 'Bump transitional dependencies' | |
| committer: 'Github Actions <41898282+github-actions[bot]@users.noreply.github.com>' | |
| author: 'Github Actions <41898282+github-actions[bot]@users.noreply.github.com>' | |
| title: 'Bump transitional dependencies' | |
| body: Transitional dependencies bump. | |
| labels: 'dependencies' |