bugfix(node): Make release task can't push to repo (#344)

This commit is contained in:
gsilvestrin
2023-07-20 13:15:29 -07:00
committed by GitHub
parent 1cbfc1bbf4
commit 2d899675e8
4 changed files with 26 additions and 2 deletions

View File

@@ -44,6 +44,15 @@ jobs:
run: |
pip install bump2version
bumpversion --verbose ${{ inputs.part }}
git push
- name: Push new version and tag
if: ${{ inputs.dry_run }} == "false"
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.LANCEDB_RELEASE_TOKEN }}
branch: main
tags: true
- uses: ./.github/workflows/update_package_lock
if: ${{ inputs.dry_run }} == "false"
with:
github_token: ${{ secrets.LANCEDB_RELEASE_TOKEN }}

View File

@@ -178,3 +178,5 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- uses: ./.github/workflows/update_package_lock
with:
github_token: ${{ secrets.LANCEDB_RELEASE_TOKEN }}

View File

@@ -1,6 +1,11 @@
name: update_package_lock
description: "Update node's package.lock"
inputs:
github_token:
required: true
description: "github token for the repo"
runs:
using: "composite"
steps:
@@ -18,5 +23,11 @@ runs:
npm install
git add package-lock.json
git commit -m "Updating package-lock.json"
git push
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

View File

@@ -10,3 +10,5 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- uses: ./.github/workflows/update_package_lock
with:
github_token: ${{ secrets.LANCEDB_RELEASE_TOKEN }}