Elffuss BraidHub

kikocis/lancedb public

main · 856 BRawPermalink
1name: update_package_lock_nodejs
2description: "Update nodejs's package.lock"
3
4inputs:
5 github_token:
6 required: true
7 description: "github token for the repo"
8
9runs:
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: ./nodejs
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