From 8706e3d2b467b002b81d5fd08ef68021536a2e07 Mon Sep 17 00:00:00 2001 From: bc-max Date: Tue, 23 Jul 2024 11:17:17 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20STRF-12284=20Add=20dependabot=D0=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - bodl-events fix --- .github/dependabot.yml | 8 ++++++++ .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 8 ++------ package.json | 2 +- spec/setup.js | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f41b19a..6e0a72d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,15 @@ version: 2 +registries: + npmjs: + type: "npm-registry" + url: "https://registry.npmjs.org" + username: x-access-token + password: ${{secrets.SBT_DEPENDENCY_GRAPH_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..2b41ad2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,10 +25,10 @@ jobs: node-version: ${{ matrix.node }} - name: Set npm registry - run: echo "@bigcommerce-labs:registry=https://npm.pkg.github.com/" >> ~/.npmrc + run: echo "@bigcommerce:registry=https://npm.pkg.github.com/" >> ~/.npmrc - name: Set npm secrets run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.CUSTOM_GA_TOKEN }}" >> ~/.npmrc - + - name: Install Dependencies run: npm i - name: Lint the code diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2633288..4cbb5a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,16 +4,12 @@ on: types: [created] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: '14.x' - - 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: npm i - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc - - run: npm publish \ No newline at end of file + - run: npm publish diff --git a/package.json b/package.json index 67f1a6c..f9f8e41 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@babel/core": "^7.11.4", "@babel/plugin-transform-runtime": "^7.12.10", "@babel/preset-env": "^7.11.0", - "@bigcommerce-labs/bodl-events": "1.9.0", + "@bigcommerce/bodl-events": "1.9.0", "babel-eslint": "^10.1.0", "babel-jest": "^26.3.0", "babel-loader": "^9.1.2", diff --git a/spec/setup.js b/spec/setup.js index 238897b..d4ec1a4 100644 --- a/spec/setup.js +++ b/spec/setup.js @@ -1,3 +1,3 @@ -import * as BodlEvents from '@bigcommerce-labs/bodl-events/dist/index.cjs'; +import * as BodlEvents from '@bigcommerce/bodl-events/dist/index.cjs'; global.bodlEvents = BodlEvents;