Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
with:
enablement: true
- uses: actions/upload-pages-artifact@v3
with:
path: site
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ coverage
*.tsbuildinfo
.omo
plans
.omc
.claude
8 changes: 4 additions & 4 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,12 @@ Cleanup policy:

## npm Trusted Publishing

The package metadata is configured for public npm publishing with provenance:
The package metadata is configured for public npm publishing:

```json
{
"publishConfig": {
"access": "public",
"provenance": true
"access": "public"
}
}
```
Expand Down Expand Up @@ -129,7 +128,8 @@ permissions:
The release job should run `corepack pnpm check`, `corepack pnpm test`,
`corepack pnpm build`, `corepack pnpm pack:dry-run`, and then `npm publish
--access public` only from a `v*` tag-gated release path.
Trusted publishing automatically uses OIDC for authentication and provenance.
Trusted publishing automatically uses OIDC for authentication and provenance in
GitHub Actions.
Official reference: https://docs.npmjs.com/trusted-publishers/

## GitHub Release
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
},
"license": "MIT",
"publishConfig": {
"access": "public",
"provenance": true
"access": "public"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion tests/package-metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("npm publish metadata", () => {
expect(metadata.homepage).toBe("https://3x-haust.github.io/gitdb/")
expect(metadata.bin).toEqual({ gitdb: "dist/src/cli/main.js" })
expect(metadata.files).toEqual(["dist/src", "README.md", "docs", "examples"])
expect(metadata.publishConfig).toEqual({ access: "public", provenance: true })
expect(metadata.publishConfig).toEqual({ access: "public" })
expect(metadata.repository.url).toBe("git+https://github.com/3x-haust/gitdb.git")
expect(rootExport).toEqual({
import: "./dist/src/index.js",
Expand Down