Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update version during release workflow only #359

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

qhanam
Copy link
Member

@qhanam qhanam commented Feb 22, 2023

Because update-version.sh is not packaged for NPM, the build:version script causes builds to fail. Further, we shouldn't be running bash scripts during the build process because they will not execute in all environments (e.g., Windows).

This change removes the build:version step from the build process. Instead, this change (1) creates a dummy "version" file which fulfills the build requirement for development builds, and (2) moves the step to the (GitHub Actions) release workflow so the correct version will be set only prior to release.

The release workflow works and the bundle contains the correct version.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@qhanam qhanam merged commit f6b7bd7 into aws-observability:main Feb 24, 2023
@qhanam qhanam deleted the fix/update-version-workflow branch February 24, 2023 00:52
@ps863 ps863 mentioned this pull request Feb 24, 2023
@ps863 ps863 mentioned this pull request Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants