| 1 | name: update_package_lock |
| 2 | description: "Update node's package.lock" |
| 3 | |
| 4 | inputs: |
| 5 | github_token: |
| 6 | required: true |
| 7 | description: "github token for the repo" |
| 8 | |
| 9 | runs: |
| 10 | using: "composite" |
| 11 | steps: |
| 12 | - uses: actions/setup-node@v3 |
| 13 | with: |
| 14 | node-version: 20 |
| 15 | - name: Set git configs |
| 16 | shell: bash |
| 17 | run: | |
| 18 | git config user.name 'Lance Release' |
| 19 | git config user.email 'lance-dev@lancedb.com' |
| 20 | - name: Update package-lock.json file |
| 21 | working-directory: ./node |
| 22 | run: | |
| 23 | npm install |
| 24 | git add package-lock.json |
| 25 | git commit -m "Updating package-lock.json" |
| 26 | shell: bash |
| 27 | - name: Push changes |
| 28 | if: ${{ inputs.dry_run }} == "false" |
| 29 | uses: ad-m/github-push-action@master |
| 30 | with: |
| 31 | github_token: ${{ inputs.github_token }} |
| 32 | branch: main |
| 33 | tags: true |