#!/usr/bin/env bash mkdir -p .pub-cache cat < ~/.pub-cache/credentials.json { "accessToken":"$accessToken", "refreshToken":"$refreshToken", "tokenEndpoint":"$tokenEndpoint", "scopes":["$scopes"], "expiration":$expiration } EOF pub publish -f