Fix pnpm workspace scripts #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Discord Commands | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-commands: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Corepack | |
run: corepack enable pnpm | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build bot | |
run: pnpm build:bot | |
- name: Deploy Commands | |
run: pnpm register-commands | |
env: | |
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} | |
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }} | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
INDEXABLE_CHANNEL_IDS: '' | |
REVALIDATE_SECRET: '' | |
WEB_URL: '' |