Skip to content

Update server.ts

Update server.ts #26

name: Register Commands
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Register Commands
strategy:
matrix:
node-version: [23.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DISCORD_APPLICATION_ID: ${{ secrets.DISCORD_APPLICATION_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install packages
run: npm install
- name: Register commands
run: npx --yes tsx src/register.ts