Skip to content

Commit

Permalink
Release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Aug 5, 2024
1 parent 675bf25 commit df145e5
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apiPassword
releasePassword
# Dependencies
/node_modules
/.pnp
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To integrate it with your project, you will need to add the following script tag
});
</script>
<script defer="defer"
src="https://cdn.jsdelivr.net/gh/supertokens/prebuiltui@v0.44.0/build/static/js/main.75ecfc8b.js"></script>
src="https://cdn.jsdelivr.net/gh/supertokens/prebuiltui@v0.45.0/build/static/js/main.e5a1c414.js"></script>
</head>

<body>
Expand Down
6 changes: 3 additions & 3 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": {
"main.js": "/static/js/main.75ecfc8b.js",
"main.js": "/static/js/main.e5a1c414.js",
"index.html": "/index.html",
"main.75ecfc8b.js.map": "/static/js/main.75ecfc8b.js.map"
"main.e5a1c414.js.map": "/static/js/main.e5a1c414.js.map"
},
"entrypoints": [
"static/js/main.75ecfc8b.js"
"static/js/main.e5a1c414.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link href="//fonts.googleapis.com/css2?family=Rubik:wght@400&display=swap" rel="stylesheet"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.75ecfc8b.js"></script></head><body><script>window.addEventListener("supertokensScriptLoaded",(()=>{supertokensInit("supertokensui",{appInfo:{websiteDomain:"http://localhost:3000",apiDomain:"http://localhost:3001",appName:"My Demo App"},style:"\n [data-supertokens~=container] {\n --palette-background: 51, 51, 51;\n --palette-inputBackground: 41, 41, 41;\n --palette-inputBorder: 41, 41, 41;\n --palette-textTitle: 255, 255, 255;\n --palette-textLabel: 255, 255, 255;\n --palette-textPrimary: 255, 255, 255;\n --palette-error: 173, 46, 46;\n --palette-textInput: 169, 169, 169;\n --palette-textLink: 169, 169, 169;\n }\n "})}))</script><noscript>You need to enable JavaScript to run this app.</noscript><div id="supertokensui"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link href="//fonts.googleapis.com/css2?family=Rubik:wght@400&display=swap" rel="stylesheet"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.e5a1c414.js"></script></head><body><script>window.addEventListener("supertokensScriptLoaded",(()=>{supertokensInit("supertokensui",{appInfo:{websiteDomain:"http://localhost:3000",apiDomain:"http://localhost:3001",appName:"My Demo App"},style:"\n [data-supertokens~=container] {\n --palette-background: 51, 51, 51;\n --palette-inputBackground: 41, 41, 41;\n --palette-inputBorder: 41, 41, 41;\n --palette-textTitle: 255, 255, 255;\n --palette-textLabel: 255, 255, 255;\n --palette-textPrimary: 255, 255, 255;\n --palette-error: 173, 46, 46;\n --palette-textInput: 169, 169, 169;\n --palette-textLink: 169, 169, 169;\n }\n "})}))</script><noscript>You need to enable JavaScript to run this app.</noscript><div id="supertokensui"></div></body></html>
3 changes: 0 additions & 3 deletions build/static/js/main.75ecfc8b.js

This file was deleted.

1 change: 0 additions & 1 deletion build/static/js/main.75ecfc8b.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions build/static/js/main.e5a1c414.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.e5a1c414.js.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"supertokens-auth-react": "0.44.0"
"supertokens-auth-react": "0.45.0"
},
"devDependencies": {
"@types/react": "^18.0.18",
Expand Down Expand Up @@ -43,4 +43,4 @@
"last 1 safari version"
]
}
}
}
17 changes: 17 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,21 @@ git push origin "v${version}"

git push

# set $SUPERTOKENS_API_KEY based on reading ./releasePassword file
SUPERTOKENS_API_KEY=$(cat ./releasePassword)

responseStatus=`curl -o $FILENAME -w "%{http_code}" -X PUT \
https://api.supertokens.io/0/frontend/auth-react \
-H 'Content-Type: application/json' \
-H 'api-version: 0' \
-d "{
\"uri\": \"https://cdn.jsdelivr.net/gh/supertokens/prebuiltui@v${version}/build/${new_file_name}\",
\"password\": \"$SUPERTOKENS_API_KEY\"
}"`
if [ $responseStatus -ne "200" ]
then
echo "failed PUT API to update js deliver uri on server with status code: $responseStatus. You need to manually call this API with the right url!"
exit 1
fi

echo "Successfully created and pushed tag v${version}"

0 comments on commit df145e5

Please sign in to comment.