diff --git a/.kokoro/release/publish-single.sh b/.kokoro/release/publish-single.sh index 062025d5f462..b6d846b52bb5 100755 --- a/.kokoro/release/publish-single.sh +++ b/.kokoro/release/publish-single.sh @@ -21,6 +21,11 @@ set -eo pipefail pwd npm install +npm pack . +# npm provides no way to specify, observe, or predict the name of the tarball +# file it generates. We have to look in the current directory for the freshest +# .tgz file. +TARBALL=$(ls -1 -t *.tgz | head -1) -# publish library to npm -npm publish --access=public --registry=https://wombat-dressing-room.appspot.com +# publish library to npm. +npm publish --access=public --registry=https://wombat-dressing-room.appspot.com "$TARBALL" diff --git a/packages/google-cloud-dataform/samples/package.json b/packages/google-cloud-dataform/samples/package.json index a5a0042d896c..be75b9aaa757 100644 --- a/packages/google-cloud-dataform/samples/package.json +++ b/packages/google-cloud-dataform/samples/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/dataform": "^1.0.0" + "@google-cloud/dataform": "^0.4.0" }, "devDependencies": { "c8": "^7.1.0",