diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index 5ad24fb..b045d7f 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -1,11 +1,8 @@ name: version_bump - permissions: contents: write pull-requests: write - on: workflow_dispatch - jobs: build: name: version bump @@ -19,13 +16,37 @@ jobs: - name: Set up Deno uses: denoland/setup-deno@v2 with: - deno-version: canary + cache: true + + - name: Determine release branch + id: branch + run: echo "name=release-$(date -u +%Y-%m-%d-%H-%M-%S)" >> "$GITHUB_OUTPUT" - name: Run version bump run: | git fetch --unshallow origin - deno run -A jsr:@deno/bump-workspaces@^0.1/cli + deno bump-version + # `deno bump-version` writes release notes as single long lines; + # format them so the release PR passes `deno fmt --check`. + deno fmt Releases.md + + - name: Commit and open release PR env: - GITHUB_TOKEN: ${{ secrets.CI_TOKEN }} - GIT_USER_NAME: ${{ github.actor }} - GIT_USER_EMAIL: ${{ github.actor}}@users.noreply.github.com + GH_TOKEN: ${{ secrets.CI_TOKEN }} + BRANCH: ${{ steps.branch.outputs.name }} + run: | + if git diff --quiet; then + echo "No version bumps detected; nothing to do." + exit 0 + fi + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + git checkout -b "$BRANCH" + git add . + git commit -m "chore: update versions" + git push origin "$BRANCH" + gh pr create \ + --base main \ + --head "$BRANCH" \ + --title "chore: release $(date -u +%Y.%m.%d)" \ + --body "Automated release PR generated by \`deno bump-version\`. Review the version bumps and \`Releases.md\` before merging." diff --git a/.github/workflows/workspace_publish.yml b/.github/workflows/workspace_publish.yml index 7e4215e..6cce706 100644 --- a/.github/workflows/workspace_publish.yml +++ b/.github/workflows/workspace_publish.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Clone repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 # Installs deno and rust from mise.toml. - name: Set up mise diff --git a/Releases.md b/Releases.md index 9ae9056..5e73847 100644 --- a/Releases.md +++ b/Releases.md @@ -5,13 +5,13 @@ - fix(assert): Added message as option argument to asserts, and added object asserts -#### @stdext/cli 0.0.1 (patch) +#### @stdext/cli 0.0.2 (patch) - feat(cli): added further options to command - feat(cli): added command - feat(cli): Added cli module with parseArgs -#### @stdext/collections 0.0.6 (patch) +#### @stdext/collections 0.1.0 (minor) - feat(collections)!: fix DeferredStack release, add clear and abortable pop - feat(collections): add deferred stack @@ -24,7 +24,7 @@ - fix(crypto): Fixed errors due to changes in deno types - chore(crypto): change ts-ignore to ts-expect-error -#### @stdext/database 0.0.1 (patch) +#### @stdext/database 0.1.0 (minor) - feat(database): added docs and examples - feat(database)!: refactored code @@ -45,15 +45,15 @@ - feat(encoding): add binary reader and writer -#### @stdext/event 0.1.0 (minor) +#### @stdext/event 0.1.1 (patch) - feat(event): added docs and tests -#### @stdext/ffi 0.0.1 (patch) +#### @stdext/ffi 0.0.2 (patch) - feat(ffi): added docs and tests -#### @stdext/fs 0.0.1 (patch) +#### @stdext/fs 0.0.2 (patch) - feat(fs): added docs and tests @@ -69,7 +69,7 @@ type helpers - feat(types): added type and improved documentation -#### @stdext/validation 0.1.1 (minor) +#### @stdext/validation 0.1.2 (patch) - feat(validation): added more helpers - feat(validation): refactor validation @@ -81,88 +81,11 @@ - fix(validation): Improved docs and tests - chore(validation): Added jsdoc and improved readme - thanks AI -#### @stdext/zip 0.0.1 (patch) +#### @stdext/zip 0.0.2 (patch) - feat(zip): add zip and unzip for archives and directories - fix(zip): replace with std -### 2026.10.04 - -#### @stdext/assert 0.1.1 (patch) - -- fix(assert): Added message as option argument to asserts, and added object - asserts - -#### @stdext/collections 0.0.6 (patch) - -- feat(collections)!: fix DeferredStack release, add clear and abortable pop -- feat(collections): add deferred stack -- fix(collections): added release and remove callbacks - -#### @stdext/crypto 0.2.0 (minor) - -- feat(crypto)!: add HMAC and SCRAM, align module interfaces -- fix(crypto): password verification -- fix(crypto): Fixed errors due to changes in deno types -- chore(crypto): change ts-ignore to ts-expect-error - -#### @stdext/database 0.0.1 (patch) - -- feat(database): added docs and examples -- feat(database)!: refactored code -- feat(database)!: refactored spec -- feat(database)!: align the Postgres driver with the spec -- feat(database)!: align the SQLite driver with the spec -- feat(database)!: align the SQL spec and core with runtime APIs -- feat(database): add Postgres driver -- feat(database)!: add core driver classes, extend conformance suite, rewrite - SQLite driver -- fix(database): implemented validation -- docs(database): document the drivers and the runtime aligned API -- docs(database): adjusted RFC according to discussion -- docs(database): Moved the RFC -- chore(database): removed postgres driver and cleaned up tests - -#### @stdext/encoding 0.1.1 (patch) - -- feat(encoding): add binary reader and writer - -#### @stdext/event 0.1.0 (minor) - -- feat(event): added docs and tests - -#### @stdext/ffi 0.0.1 (patch) - -- feat(ffi): added docs and tests - -#### @stdext/fs 0.0.1 (patch) - -- feat(fs): added docs and tests - -#### @stdext/json 0.1.1 (patch) - -- feat(json): Added JSON Schema -- fix(json): Added exports and format types -- chore(json): fix lint - -#### @stdext/types 0.1.1 (patch) - -- feat(types): added new constructor type helper and added examples to existing - type helpers -- feat(types): added type and improved documentation - -#### @stdext/validation 0.1.1 (minor) - -- feat(validation): added more helpers -- feat(validation): refactor validation -- feat(validation): added fluent validation api -- feat(validation): Added tests and jsdoc - thanks AI -- feat(validation): Implemented a basic validator implementing StandardSchemaV1, - StandardJSONSchemaV1 and JSONSchema -- feat(validation): added validation namespace, and standard compliant validator -- fix(validation): Improved docs and tests -- chore(validation): Added jsdoc and improved readme - thanks AI - ### 2026.10.03 #### @stdext/assert 0.1.1 (patch) diff --git a/cli/deno.json b/cli/deno.json index 09b42be..f314bc4 100644 --- a/cli/deno.json +++ b/cli/deno.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.0.2", "name": "@stdext/cli", "exports": { ".": "./mod.ts", diff --git a/collections/deno.json b/collections/deno.json index 56cffd2..6600e61 100644 --- a/collections/deno.json +++ b/collections/deno.json @@ -1,5 +1,5 @@ { - "version": "0.0.6", + "version": "0.1.0", "name": "@stdext/collections", "exports": { ".": "./mod.ts", diff --git a/database/deno.json b/database/deno.json index 574b41a..2606e9b 100644 --- a/database/deno.json +++ b/database/deno.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.1.0", "name": "@stdext/database", "exports": { "./sql": "./sql/mod.ts", diff --git a/event/deno.json b/event/deno.json index be8ee89..ba95da5 100644 --- a/event/deno.json +++ b/event/deno.json @@ -1,5 +1,5 @@ { - "version": "0.1.0", + "version": "0.1.1", "name": "@stdext/event", "exports": { ".": "./mod.ts" diff --git a/ffi/deno.json b/ffi/deno.json index 4408465..7cca918 100644 --- a/ffi/deno.json +++ b/ffi/deno.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.0.2", "name": "@stdext/ffi", "exports": { ".": "./mod.ts", diff --git a/fs/deno.json b/fs/deno.json index 054b8ca..a1db87f 100644 --- a/fs/deno.json +++ b/fs/deno.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.0.2", "name": "@stdext/fs", "exports": { ".": "./mod.ts", diff --git a/validation/deno.json b/validation/deno.json index d95d09e..cfede84 100644 --- a/validation/deno.json +++ b/validation/deno.json @@ -1,5 +1,5 @@ { - "version": "0.1.1", + "version": "0.1.2", "name": "@stdext/validation", "exports": { ".": "./mod.ts" diff --git a/zip/deno.json b/zip/deno.json index 8311544..d3c7afa 100644 --- a/zip/deno.json +++ b/zip/deno.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.0.2", "name": "@stdext/zip", "exports": { ".": "./mod.ts",