This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
Test Registration #5
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: Mod Bot | |
on: | |
issue_comment: | |
types: | |
- created | |
- edited | |
defaults: | |
run: | |
working-directory: src | |
jobs: | |
bot: | |
name: Run the Bot & Command | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Setup pnpm | |
run: npm i -g pnpm | |
- name: Setup Rustup | |
run: rustup toolchain install stable | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: ./target/ | |
key: ${{ runner.os }}-cargo- | |
- name: Install deps | |
run: pnpm install | |
- name: Run napi build | |
run: pnpm napi build | |
- name: Run bot | |
run: node . | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CTX: ${{ toJson(github) }} |