-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (31 loc) · 816 Bytes
/
node.js.yml
File metadata and controls
39 lines (31 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
run-bot:
runs-on: ubuntu-latest
environment: Production
env:
BOT_HOST: ${{ secrets.BOT_HOST }}
BOT_PORT: ${{ secrets.BOT_PORT }}
BOT_USERNAME: ${{ secrets.BOT_USERNAME }}
BOT_AUTH: ${{ secrets.BOT_AUTH }}
BOT_PASSWORD: ${{ secrets.BOT_PASSWORD }}
strategy:
matrix:
node-version: [22.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm install
- name: Start bot
run: node bot.js