diff --git a/.github/workflows/post-release-version-bump.yml b/.github/workflows/post-release-version-bump.yml index 8c483f25..777e24da 100644 --- a/.github/workflows/post-release-version-bump.yml +++ b/.github/workflows/post-release-version-bump.yml @@ -94,16 +94,22 @@ jobs: git fetch origin $RELEASE_BRANCH git checkout -b "prepare-main-for-next-dev-cycle-${VERSION}" origin/$RELEASE_BRANCH + - name: Set up node + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Update version to next development version in main - # TODO: change the version in daily scan like adot python did - # sed -i 's/python:v.*"/python:v'$VERSION'"/' .github/workflows/daily_scan.yml run: | DEV_VERSION="${{ github.event.inputs.version }}.dev0" sed -i'' -e "s/\"version\": \".*\"/\"version\": \"${DEV_VERSION}\"/" aws-distro-opentelemetry-node-autoinstrumentation/package.json sed -i'' -e "s/\"version\": \".*\"/\"version\": \"${DEV_VERSION}\"/" docker-utils/package.json sed -i'' -e "s/\"version\": \".*\"/\"version\": \"${DEV_VERSION}\"/" package.json VERSION="${{ github.event.inputs.version }}" + npm install + sed -i "s|\(/aws-observability/adot-autoinstrumentation-node:\)v[0-9]\+\.[0-9]\+\.[0-9]\+|\1v${{github.event.inputs.version}}|g" .github/workflows/daily-scan.yml git add . + git status git commit -m "Prepare main for next development cycle: Update version to $DEV_VERSION" git push --set-upstream origin "prepare-main-for-next-dev-cycle-${VERSION}"