Skip to content

Commit

Permalink
update package-lock.json automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Jul 4, 2023
1 parent 3b853bb commit 31cd4af
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
fetch-depth: 0
token: ${{ secrets.PUSH_GITHUB_TOKEN }}

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Update Version to Release Tag
run: |
# Extract the release tag number
Expand All @@ -29,10 +33,13 @@ jobs:
sed -i "s/\"version\": \".*\"/\"version\": \"$TAG\"/" bindings/nodejs/nodered/package.json
sed -i "s/\"hvps\": \".*\"/\"hvps\": \"$TAG\"/" bindings/nodejs/nodered/package.json
# Update the package.lock for the nodered node
npm install --prefix bindings/nodejs/nodered
# Commit and push changes
git config --local user.name "Luis Antonio Obis Aparicio"
git config --local user.email "[email protected]"
git add src/hvps/version.py bindings/nodejs/hvps/package.json bindings/nodejs/nodered/package.json
git add src/hvps/version.py bindings/nodejs/hvps/package.json bindings/nodejs/nodered/package.json bindings/nodejs/nodered/package-lock.json
git commit -m "Update version to $TAG"
git push origin HEAD:main
Expand Down

0 comments on commit 31cd4af

Please sign in to comment.