Skip to content

Commit

Permalink
build: test google sheets step
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Apr 9, 2024
1 parent 97015dc commit b1486d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/files/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ async function updateGoogleSheets(
const sheetName = `Vol ${volume} (${getVolumePublicationDate(volume)})`;
const sheetId = process.env.GOOGLE_SHEET_ID;
const clientEmail = process.env.GOOGLE_CLIENT_EMAIL;
/**
* https://stackoverflow.com/questions/74131595/error-error1e08010cdecoder-routinesunsupported-with-google-auth-library
*/
const privateKey =
process.env.GOOGLE_PRIVATE_KEY?.split(String.raw`\n`).join('\n');
const privateKey = process.env.GOOGLE_PRIVATE_KEY;

if (!sheetId || !clientEmail || !privateKey) {
console.error('Missing Sheet ID, Client Email or Private Key');
Expand Down

0 comments on commit b1486d6

Please sign in to comment.