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

add metrics plugin for Node 16 #923

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## main
- Drop Heroku-16 from CI test matrix ([#920](https://github.com/heroku/heroku-buildpack-nodejs/pull/920))
- Add metrics plugin for Node 16 ([#923](https://github.com/heroku/heroku-buildpack-nodejs/pull/923))

## v184 (2021-05-20)
- Prune devDependencies with Yarn 2 ([#891](https://github.com/heroku/heroku-buildpack-nodejs/pull/891))
Expand Down
19 changes: 6 additions & 13 deletions plugin/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,19 @@ download() {

delete_old_plugin() {
local dir=${1}
rm -f "$dir/heroku-nodejs-plugin-node-10.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-10.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-12.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-12.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-14.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-14.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-15.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-15.tar.gz"
rm -f "$dir/heroku-nodejs-plugin-node-16.sha512"
rm -f "$dir/heroku-nodejs-plugin-node-16.tar.gz"
rm -f "$dir/version"
}

download_assets_for_release() {
local tag=${1}
local dir=${2}

# Node 10
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-10-$tag.sha512" "$dir/heroku-nodejs-plugin-node-10.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-10-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-10.tar.gz"

# Node 12
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-12-$tag.sha512" "$dir/heroku-nodejs-plugin-node-12.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-12-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-12.tar.gz"
Expand All @@ -61,9 +55,9 @@ download_assets_for_release() {
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-14-$tag.sha512" "$dir/heroku-nodejs-plugin-node-14.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-14-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-14.tar.gz"

# Node 15
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-15-$tag.sha512" "$dir/heroku-nodejs-plugin-node-15.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-15-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-15.tar.gz"
# Node 16
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-16-$tag.sha512" "$dir/heroku-nodejs-plugin-node-16.sha512"
download "https://github.com/heroku/heroku-nodejs-plugin/releases/download/$tag/heroku-nodejs-plugin-node-16-$tag.tar.gz" "$dir/heroku-nodejs-plugin-node-16.tar.gz"
}

test_hash() {
Expand Down Expand Up @@ -96,9 +90,8 @@ echo $TAG_NAME > "$PLUGIN_DIR/version"

echo "Plugins downloaded"

test_hash 10 $PLUGIN_DIR
test_hash 12 $PLUGIN_DIR
test_hash 14 $PLUGIN_DIR
test_hash 15 $PLUGIN_DIR
test_hash 16 $PLUGIN_DIR

echo "Done"
2 changes: 1 addition & 1 deletion plugin/heroku-nodejs-plugin-node-12.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
56ce282e8238427347edc66dfcb24526fd45844599f4cff5561b672ec23613364320bc4d4bfc2cb405a5a06d4ea0228bcf72d3c7317945708b4e6f22f287bb5f heroku-nodejs-plugin-node-12-v8.tar.gz
0312052c2e814b04747467d16d34493aa7cf13d0334bc82e0a301be2539b61927c80f1bc1fb13be351ee44c625a1525c7f78bd0e13d83b7d6478dd558f896fe8 heroku-nodejs-plugin-node-12-v9.tar.gz
Binary file modified plugin/heroku-nodejs-plugin-node-12.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion plugin/heroku-nodejs-plugin-node-14.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b03e6b3ca36531215c022f3473199e8a9b26fdc7a44099866768fa3b9ea9e4d14d12fc499c4ac0dc707427604b2060d8aec5352722496756e3c4da1873b57ee9 heroku-nodejs-plugin-node-14-v8.tar.gz
5de4bfdf2ca972e1b0023dd67cab265a209e1400992f3aaa3462378fc1b68fbf20dfe65a3bef50ef08e9dab3a4cd47c63f9946cc5a92f9c9945f5b4aa28ce944 heroku-nodejs-plugin-node-14-v9.tar.gz
Binary file modified plugin/heroku-nodejs-plugin-node-14.tar.gz
Binary file not shown.
1 change: 1 addition & 0 deletions plugin/heroku-nodejs-plugin-node-16.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d550f43fa09601cefcd3f3c90db444e99b08a6543264bd6ab392b5634cf551993870039ccf9664b1dbec07fb89e80b165209c7c8773a2e132630e745628594a2 heroku-nodejs-plugin-node-16-v9.tar.gz
Binary file added plugin/heroku-nodejs-plugin-node-16.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion plugin/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8
v9