@async/db 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/docs/ci-and-release.md +22 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.1](https://github.com/async-framework/async-db/releases/tag/v0.2.1) - 2026-06-01
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Made the tag release workflow retry-safe by skipping npm publish when the package version already exists, while still creating or updating the GitHub release asset.
|
|
8
|
+
- Updated release documentation to match the built `dist/` package allowlist, gated Release Please behavior, and manual/tag release flow.
|
|
9
|
+
|
|
3
10
|
## [0.2.0](https://github.com/async-framework/async-db/releases/tag/v0.2.0) - 2026-06-01
|
|
4
11
|
|
|
5
12
|
### Added
|
package/docs/ci-and-release.md
CHANGED
|
@@ -68,9 +68,9 @@ npm run db -- serve --cwd ./examples/basic
|
|
|
68
68
|
`package.json` includes:
|
|
69
69
|
|
|
70
70
|
```txt
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
dist/**/*.js
|
|
72
|
+
dist/**/*.d.ts
|
|
73
|
+
!dist/**/*.test.js
|
|
74
74
|
examples/*/README.md
|
|
75
75
|
examples/*/example.json
|
|
76
76
|
examples/*/package.json
|
|
@@ -130,11 +130,11 @@ The first check confirms the README stayed compact. The second highlights same-p
|
|
|
130
130
|
|
|
131
131
|
Release pull requests and npm publication are handled by `.github/workflows/release.yml`.
|
|
132
132
|
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
133
|
+
- The Release Please job is opt-in behind the repository variable `RELEASE_PLEASE_CREATE_PR=true`. Keep it disabled when the organization blocks GitHub Actions from creating pull requests.
|
|
134
|
+
- When enabled, Release Please opens or updates a release PR with the next version, `package.json`, `.release-please-manifest.json`, and `CHANGELOG.md`.
|
|
135
|
+
- The tag path runs when a `v*.*.*` tag is pushed, or when the workflow is dispatched with an existing tag.
|
|
136
|
+
- The tag path validates that `package.json` matches the tag, runs `npm run release:check`, packs the package, publishes `@async/db` to npm when that exact version is not already present, creates the GitHub release if needed, and uploads the tarball.
|
|
137
|
+
- Rerunning a partially completed tag release is safe: if npm already has the package version, the workflow skips `npm publish` and still reconciles the GitHub release asset.
|
|
138
138
|
|
|
139
139
|
The release workflow uses npm Trusted Publishing through GitHub Actions OIDC. Before the first automated publish, configure npm for:
|
|
140
140
|
|
|
@@ -153,16 +153,25 @@ npm publish --access public
|
|
|
153
153
|
|
|
154
154
|
If Trusted Publishing is not configured yet, the release workflow can create the release PR and GitHub release, but npm publish will fail until npm trusts this repository and workflow.
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
If Trusted Publishing is not configured and the npm publish step fails, publish manually from an npm account with `@async` scope write access, then rerun the tag workflow to reconcile the GitHub release:
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
```bash
|
|
159
|
+
npm login --scope=@async --registry=https://registry.npmjs.org --auth-type=web
|
|
160
|
+
npm run release:check
|
|
161
|
+
npm pack
|
|
162
|
+
npm publish --access public async-db-<version>.tgz
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Tag Release
|
|
166
|
+
|
|
167
|
+
For a manual patch release, update `package.json`, `.release-please-manifest.json`, and `CHANGELOG.md`, then merge to `main` and tag the release commit:
|
|
159
168
|
|
|
160
169
|
```bash
|
|
161
|
-
git tag
|
|
162
|
-
git push origin
|
|
170
|
+
git tag v<version>
|
|
171
|
+
git push origin v<version>
|
|
163
172
|
```
|
|
164
173
|
|
|
165
|
-
|
|
174
|
+
Use `NPM_CONFIG_USERCONFIG=/dev/null npm view @async/db version` when checking public npm visibility from this machine, because local npm user config may set conservative install cutoffs.
|
|
166
175
|
|
|
167
176
|
## Manual Release Checks
|
|
168
177
|
|
package/package.json
CHANGED