mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-25 22:29:58 +00:00
This will start publishing `@lancedb/lancedb` with the new nodejs package on our releases.
34 lines
856 B
YAML
34 lines
856 B
YAML
name: update_package_lock_nodejs
|
|
description: "Update nodejs's package.lock"
|
|
|
|
inputs:
|
|
github_token:
|
|
required: true
|
|
description: "github token for the repo"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
- name: Set git configs
|
|
shell: bash
|
|
run: |
|
|
git config user.name 'Lance Release'
|
|
git config user.email 'lance-dev@lancedb.com'
|
|
- name: Update package-lock.json file
|
|
working-directory: ./nodejs
|
|
run: |
|
|
npm install
|
|
git add package-lock.json
|
|
git commit -m "Updating package-lock.json"
|
|
shell: bash
|
|
- name: Push changes
|
|
if: ${{ inputs.dry_run }} == "false"
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ inputs.github_token }}
|
|
branch: main
|
|
tags: true
|