From f3b919fa80aea74f585a947c9d543ac576f72ebe Mon Sep 17 00:00:00 2001
From: Max Moroz <95914987+bc-max@users.noreply.github.com>
Date: Tue, 24 Sep 2024 18:50:49 +0300
Subject: [PATCH] feat: STRF-12284 Add dependabot (#210)

---
 .github/dependabot.yml      | 16 ++++++++++++++++
 .github/workflows/build.yml |  4 ++--
 2 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 .github/dependabot.yml

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..2c59411
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,16 @@
+version: 2
+
+registries:
+    npmjs:
+        type: "npm-registry"
+        url: "https://registry.npmjs.org"
+        username: x-access-token
+        password: ${{secrets.NPM_TOKEN}}
+
+updates:
+    - package-ecosystem: "npm"
+      directory: "/"
+      registries:
+          - npmjs
+      schedule:
+          interval: "daily" # Schedule updates to run daily
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4b0b9df..8755e05 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -27,8 +27,8 @@ jobs:
       - name: Set npm registry
         run: echo "@bigcommerce-labs:registry=https://npm.pkg.github.com/" >> ~/.npmrc
       - name: Set npm secrets
-        run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.CUSTOM_GA_TOKEN }}" >> ~/.npmrc
-    
+        run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.DEPENDABOT_GITHUB_TOKEN }}" >> ~/.npmrc
+
       - name: Install Dependencies
         run: npm i
       - name: Lint the code