Skip to content

Commit

Permalink
fix: ci stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Dec 27, 2023
1 parent ead4cab commit f960d91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ COPY yarn.lock .
RUN apk add git
RUN npm install -g yarn
COPY . .
RUN yarn install --ignore-optional
RUN yarn install
RUN yarn build
8 changes: 5 additions & 3 deletions packages/locales/lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ const { log, HELPERS } = require('@rm/logger')

const { readAndParseJson, readLocaleDirectory, writeAll } = require('./utils')

const openAI = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
})
const openAI = process.env.OPENAI_API_KEY
? new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
})
: null

/**
* @typedef {Record<string, string>} I18nObject
Expand Down

0 comments on commit f960d91

Please sign in to comment.