-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update package-lock.json automatically
- Loading branch information
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|