Skip to content

Commit 6fed8fc

Browse files
authored
update pre-release workflow to update package-lock.json (#45)
*Issue #, if available:* *Description of changes:* Update pre-release workflow to run `npm install` to update package-lock.json By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 3b264f5 commit 6fed8fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pre-release-prepare.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,17 @@ jobs:
8888
git checkout -b "v${VERSION}_release"
8989
git push origin "v${VERSION}_release"
9090
91+
- name: Set up node
92+
uses: actions/setup-node@v4
93+
with:
94+
node-version: 20
95+
9196
- name: Update version in file
9297
run: |
9398
sed -i'' -e "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/" aws-distro-opentelemetry-node-autoinstrumentation/package.json
9499
sed -i'' -e "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/" docker-utils/package.json
95100
sed -i'' -e "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/" package.json
101+
npm install
96102
git commit -am "Update version to ${VERSION}"
97103
git push origin "v${VERSION}_release"
98104

0 commit comments

Comments
 (0)