summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-06 16:51:26 -0700
committerFuwn <[email protected]>2025-09-06 16:51:26 -0700
commitb625aff7160c593646efaf080163f96f69aa6391 (patch)
tree163d5096e3145bcb0b0bf8feba5ab35ef12c9f62 /.github
downloadumabotdiscord-b625aff7160c593646efaf080163f96f69aa6391.tar.xz
umabotdiscord-b625aff7160c593646efaf080163f96f69aa6391.zip
feat: Initial commit
Diffstat (limited to '.github')
-rw-r--r--.github/dependabot.yml10
-rw-r--r--.github/workflows/ci.yaml39
2 files changed, 49 insertions, 0 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..e679178
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,10 @@
+version: 2
+updates:
+ - package-ecosystem: "npm"
+ directory: "/"
+ schedule:
+ interval: "weekly"
+ ignore:
+ - dependency-name: "*"
+ update-types:
+ ["version-update:semver-patch", "version-update:semver-minor"]
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..ab2c382
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,39 @@
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+name: ci
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v5
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 18
+ - run: npm install
+ - run: npm test
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v5
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 18
+ - run: npm install
+ - run: npm run lint
+ release:
+ if: github.ref == 'refs/heads/main'
+ runs-on: ubuntu-latest
+ needs: [test, lint]
+ steps:
+ - uses: actions/checkout@v5
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 18
+ - run: npm install
+ - run: npm run publish
+ env:
+ CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
+ CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}