Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create node.js.yml #18

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Create node.js.yml #18

wants to merge 21 commits into from

Conversation

Jerryzjx
Copy link
Contributor

No description provided.

@Jerryzjx
Copy link
Contributor Author

Jerryzjx commented Feb 4, 2024

Please review my PR!

@@ -2,11 +2,14 @@ const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
/* ----------------------
Google Sheets Setup
-------------------------- */
const { spreadsheetId } = require('../../config.json');
//const { spreadsheetId } = require('../../config.json');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason we're getting rid of the config.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github action are unable to read files being gitignored. We passed github secrets as environment variables instead

@@ -1,5 +1,8 @@
const { REST, Routes } = require('discord.js');
const { clientId, guildId, token } = require('./config.json');
//const { clientId, guildId, token } = require('./config.json');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will have to change a lot of stuff if we go from config.json -> .env, especially how we build. pros /cons of this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pros: github action automate this process once we have CI configured. Cons: have to change github secrets if we change anything in config.json

@sherwinchiu
Copy link
Contributor

i feel like this will break everyones code LOL

@Jerryzjx
Copy link
Contributor Author

Jerryzjx commented Feb 5, 2024

i feel like this will break everyones code LOL

Yea, I agree. We should only use this if we have finished building every functionality and are ready to deploy to VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants