diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..c7be077 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "bun" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/labeler.yml b/.github/labeler.yml index 5e28221..1e05302 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,38 +1,44 @@ typescript: - - '**/*.ts' + - changed-files: + any-glob-to-any-file: ['**/*.ts'] native: - - 'native/**/*' - - 'binding.gyp' + - changed-files: + any-glob-to-any-file: ['native/**/*', 'binding.gyp'] documentation: - - 'README.md' - - 'docs/**/*' + - changed-files: + any-glob-to-any-file: ['README.md', 'docs/**/*'] tests: - - 'test/**/*' + - changed-files: + any-glob-to-any-file: ['test/**/*'] examples: - - 'examples/**/*' + - changed-files: + any-glob-to-any-file: ['examples/**/*'] build: - - 'build.ts' - - 'build/**/*' - - 'tsconfig.json' + - changed-files: + any-glob-to-any-file: ['build.ts', 'build/**/*', 'tsconfig.json'] dependencies: - - 'package.json' - - 'bun.lock' + - changed-files: + any-glob-to-any-file: ['package.json', 'bun.lock'] config: - - 'config/**/*' - - '.gitignore' - - '.npmignore' - - '.gitattributes' - - 'lefthook.yml' - - 'biome.json' - - '.github/*' - - '.github/!(workflows)/**/*' + - changed-files: + any-glob-to-any-file: [ + 'config/**/*', + '.gitignore', + '.npmignore', + '.gitattributes', + 'lefthook.yml', + 'biome.json', + '.github/*', + '.github/!(workflows)/**/*' + ] ci: - - '.github/workflows/**/*' + - changed-files: + any-glob-to-any-file: ['.github/workflows/**/*'] diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 5272643..6208335 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -4,7 +4,7 @@ permissions: contents: write pull-requests: write packages: write - + on: workflow_dispatch: inputs: @@ -67,7 +67,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Create branch + run: | + branch_name="bump/v${{ needs.prepare.outputs.next_version }}" + git checkout -b $branch_name + - name: Bump package run: | git config --global user.email "actions@github.com" @@ -75,7 +82,18 @@ jobs: npm version ${{ inputs.bump_type }} --no-git-tag-version git add package.json git commit -m "chore: bump version to ${{ needs.prepare.outputs.next_version }}" - git push + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + title: "chore: bump version to v${{ needs.prepare.outputs.next_version }}" + body: | + Automated version bump to v${{ needs.prepare.outputs.next_version }} + + This PR was automatically created by the version bump workflow. + branch: bump/v${{ needs.prepare.outputs.next_version }} + base: main + labels: bump release-draft: needs: [prepare, bump-package] @@ -90,4 +108,4 @@ jobs: draft: true prerelease: ${{ inputs.bump_type == 'alpha' || inputs.bump_type == 'beta' }} tag_name: v${{ needs.prepare.outputs.next_version }} - generate_release_notes: true + generate_release_notes: true \ No newline at end of file diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 83d7c3a..5668ea8 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,4 +12,5 @@ jobs: - uses: mongolyy/reviewdog-action-biome@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} - reporter: github-pr-review \ No newline at end of file + reporter: github-pr-review + fail_level: any \ No newline at end of file diff --git a/bun.lock b/bun.lock index 7d44896..d8cb73c 100644 --- a/bun.lock +++ b/bun.lock @@ -4,7 +4,7 @@ "": { "name": "@joshmiquel/memoryjs", "dependencies": { - "node-addon-api": "3.2.1", + "node-addon-api": "8.3.1", }, "devDependencies": { "@biomejs/biome": "1.9.4", @@ -130,7 +130,7 @@ "minimatch": ["minimatch@3.0.8", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q=="], - "node-addon-api": ["node-addon-api@3.2.1", "", {}, "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A=="], + "node-addon-api": ["node-addon-api@8.3.1", "", {}, "sha512-lytcDEdxKjGJPTLEfW4mYMigRezMlyJY8W4wxJK8zE533Jlb8L8dRuObJFWg2P+AuOIxoCgKF+2Oq4d4Zd0OUA=="], "path-parse": ["path-parse@1.0.7", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="], diff --git a/package.json b/package.json index d5f4ffa..649e60e 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ }, "homepage": "https://github.com/JoShMiQueL/memoryjs#readme", "dependencies": { - "node-addon-api": "3.2.1" + "node-addon-api": "8.3.1" }, "devDependencies": { "@biomejs/biome": "1.9.4",