diff --git a/.changeset/clean-places-deny.md b/.changeset/clean-places-deny.md new file mode 100644 index 000000000..32ebaabc9 --- /dev/null +++ b/.changeset/clean-places-deny.md @@ -0,0 +1,5 @@ +--- +"@drivenets/eslint-plugin-design-system": patch +--- + +Update dependencies diff --git a/.github/scripts/generate-dependabot-changeset.ts b/.github/scripts/generate-dependabot-changeset.ts index 84049d577..0dcf2d1fa 100644 --- a/.github/scripts/generate-dependabot-changeset.ts +++ b/.github/scripts/generate-dependabot-changeset.ts @@ -36,9 +36,16 @@ const changeset: Changeset = { await writeChangeset(changeset, rootDir); await git.add('-A', rootDir); -await git.commit('chore: update changeset', rootDir); -await execAsync('git push', { cwd: rootDir }); +// const committed = await git.commit('chore: update changeset', rootDir); + +const commit = await execAsync('git commit -m "chore: update changeset"', { cwd: rootDir }); + +console.log({ commit }); + +const { stderr, stdout } = await execAsync('git push', { cwd: rootDir }); + +console.log({ stderr, stdout }); async function getExistingChangeset() { const changedFiles = await git.getChangedFilesSince({ diff --git a/.github/workflows/dependabot-changeset.yml b/.github/workflows/dependabot-changeset.yml index 794950b7b..e64849012 100644 --- a/.github/workflows/dependabot-changeset.yml +++ b/.github/workflows/dependabot-changeset.yml @@ -1,6 +1,6 @@ name: Dependabot -on: pull_request_target +on: pull_request permissions: {} @@ -38,5 +38,10 @@ jobs: - name: Install Dependencies uses: ./.github/actions/install + - name: Configure git user + run: | + git config user.name 'github-actions[bot]' + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' + - name: Generate changeset run: node .github/scripts/generate-dependabot-changeset.ts diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 17490b4f9..8216d729b 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -19,7 +19,7 @@ } }, "files": [ - "README.md", + "README.md ", "CHANGELOG.md", "LICENSE", "./dist",