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
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Dependabot version updates. Opens PRs to keep dependency versions fresh.
# Docs: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: 'npm'
Expand Down Expand Up @@ -29,3 +31,21 @@ updates:
- 'oxfmt'
- 'oxlint-tsgolint'
- '@solana-config/oxc'

# GitHub Actions used across .github/workflows/*.
# Third-party actions are pinned to commit SHAs and this keeps the pins from rotting.
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
github-actions:
patterns:
- '*'
# Minor and patch bumps are grouped into one PR.
# Majors are split out so each can be reviewed on its own.
update-types:
- 'minor'
- 'patch'
Comment thread
lorisleiva marked this conversation as resolved.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v7

- name: Set up pnpm
uses: pnpm/action-setup@v6
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10

- name: Set up Node.js
uses: actions/setup-node@v7
Expand All @@ -53,7 +53,7 @@ jobs:
uses: actions/checkout@v7

- name: Set up pnpm
uses: pnpm/action-setup@v6
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10

- name: Set up Node.js
uses: actions/setup-node@v7
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
token: ${{ steps.app-token.outputs.token }}

- name: Set up pnpm
uses: pnpm/action-setup@v6
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10

- name: Set up Node.js
uses: actions/setup-node@v7
Expand All @@ -113,7 +113,7 @@ jobs:

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v2.1.1
uses: changesets/action@8488615a623b1b9c987934bb89eae8af6a946ac1 # v2.1.1
with:
github-token: ${{ steps.app-token.outputs.token }}
version-script: pnpm release:version
Expand All @@ -134,7 +134,7 @@ jobs:
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v3
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0

- name: Auto-approve the PR
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Default registry for package-name lookups. Scope-specific entries in an inherited user or global
# .npmrc still take precedence, so the lockfile pins stay the real integrity control.
registry=https://registry.npmjs.org/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0c065fa
Slightly overstated, but right that this only covers the default registry - comment narrowed to say so. Not maintaining a scope list: 23 scopes, mostly transitive, and a new one would be silently unprotected. Integrity hashes in the lockfile plus --frozen-lockfile are the actual control.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@changesets/changelog-github": "^1.0.1",
"@changesets/cli": "^3.0.2",
"@codama/release-tools": "github:codama-idl/release-tools#v1.0.0",
"@codama/release-tools": "github:codama-idl/release-tools#v1.2.0",
"@solana-config/oxc": "^0.1.1",
"@types/node": "^26",
"agadoo": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/dynamic-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
"dev": "vitest --project node",
"test": "pnpm generate-program-types && pnpm test:types && pnpm test:treeshakability && pnpm test:unit",
"anchor:build": "cd test/programs/anchor && anchor build --ignore-keys",
"anchor:build": "cd test/programs/anchor && anchor build --ignore-keys -- --locked",
Comment thread
lorisleiva marked this conversation as resolved.
"anchor:sync:build": "pnpm anchor:build && node ./scripts/anchor/sync-anchor-builds.mjs && pnpm anchor:generate-idl && pnpm generate-program-types",
"anchor:generate-idl": "node ./scripts/anchor/generate-idl-from-anchor.mjs",
"test:treeshakability": "for file in dist/index.*.mjs; do agadoo $file; done",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
packages:
- "packages/*"

# No dependency may run install or build scripts.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# No dependency may run install or build scripts.
minimumReleaseAge: 10080
# No dependency may run install or build scripts.

I'd suggest adding a delay for the dependencies to sync with the delay for dependabot.
But this requires updating to pnpm@10.16

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, i deliberately decided not to add this one in current changes.

onlyBuiltDependencies: []