pulumi/scripts
Justin Van Patten 0a935f3e0f Fix `publish_npm.sh` script to handle `GITHUB_REF` without '/'
It looks like the intention of this script was to parse `GITHUB_REF`s in the form `refs/heads/<branch_name>` or `refs/tags/<tag_name>` per https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables, but we overwrite this envvar in the workflow:

53e205f08f/.github/workflows/release.yml (L54)

Which is passed along from here:

53e205f08f/.github/workflows/on-release.yml (L37)

Which is just the tag name.

Still unclear how this worked for previous releases, but the script errored with the latest release when `GITHUB_REF` was just `v3.74.0`.

This commit makes the script resilient to values of `GITHUB_REF` that don't have '/'.
2023-06-30 11:30:18 -07:00
..
brew.sh ci: Enable goreleaser prep script to build for local os & arch 2022-09-16 09:50:10 -07:00
get-job-matrix.py Temporarily bump Windows runner size to unblock merging 2023-06-21 13:13:25 -07:00
get-language-providers.sh Update pulumi-dotnet to v3.54.0 2023-02-14 10:57:46 +01:00
get-pulumi-watch.sh ci: Enable goreleaser prep script to build for local os & arch 2022-09-16 09:50:10 -07:00
get-version ci: ensure trunk is always green 2022-09-13 13:38:14 -07:00
git-linear-history-check.sh ci: block non-linear merges 2022-11-08 11:22:32 -08:00
go-test.py ci: Track code coverage 2023-06-28 13:30:13 -07:00
go-update.sh ci: Remove -compat=1.18 flags to validate that tests pass on current and minimum supported Go versions 2022-09-27 10:41:25 -07:00
go-wrapper.sh ci/build-binaries: Don't enable cgo for Darwin 2023-06-29 14:53:05 -07:00
integration_test_subsets.py Remove dotnet 2022-12-13 16:13:53 +00:00
normpath Toward replacing MSBuild with make+bash on Windows (#8617) 2022-01-07 22:27:14 -05:00
prep-for-goreleaser.sh ci: Enable goreleaser prep script to build for local os & arch 2022-09-16 09:50:10 -07:00
publish_npm.sh Fix `publish_npm.sh` script to handle `GITHUB_REF` without '/' 2023-06-30 11:30:18 -07:00
pulumi-version.sh ci: ensure trunk is always green 2022-09-13 13:38:14 -07:00
release.sh Fix mislabeling in error message of release script (#10421) 2022-08-17 10:51:03 +01:00
retry scripts/retry: set-output is deprecated 2023-03-01 14:11:23 -08:00
reversion.js Substitute ${VERSION} on Windows builds too 2018-02-20 14:37:28 -08:00
tidy.sh chore: Update go modules via go mod tidy 2022-10-05 12:17:41 -04:00
versions.sh ci: ensure trunk is always green 2022-09-13 13:38:14 -07:00