Skip to content

Commit

Permalink
Add .npmrc to bump_version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
craigk5n committed Nov 27, 2023
1 parent 4b9eb70 commit 2dc34ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ function update_upgrade_matrix() {
echo "Updated $file_path to version $new_version"
}

update_npmrc_version() {
local new_version="$1"
sed -i -E "s/(init-version = )[^ ]+/\1$new_version/" .npmrc
}

# Function to print current version
print_version() {
local version
Expand Down Expand Up @@ -139,6 +144,7 @@ update_config_php "$new_version"
update_upgrading_html "$new_version"
update_composer_json "$new_version"
update_upgrade_matrix "$new_version"
update_npmrc_version "$new_version"

echo ""
echo "Files updated to version $new_version"
Expand Down

0 comments on commit 2dc34ce

Please sign in to comment.