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
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '26.13.1'

- uses: pnpm/action-setup@v4
with:
version: '10.34.9'
version: '12.18.0'
dest: ${{ runner.temp }}/pnpm-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}
run_install: false
- uses: actions/setup-node@v4
with:
node-version: '24.22.2'
cache: pnpm

- name: Install
run: pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile --config.dangerously-allow-all-builds=true

- name: Build
run: pnpm run build
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,27 @@ jobs:
node <<'NODE'
const assert = require('node:assert/strict');
const pkg = require('./package.json');
assert.equal(pkg.packageManager, 'pnpm@10.34.9');
assert.equal(pkg.packageManager, 'pnpm@12.18.0');
assert.equal(pkg.name, '@1msg/cli');
assert.match(pkg.version, /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/);
assert.equal(pkg.repository.url, 'git+https://github.com/1msg/1msg-cli.git');
assert.ok(!pkg.publishConfig?.registry || pkg.publishConfig.registry.replace(/\/$/, '') === 'https://registry.npmjs.org');
if (process.env.GITHUB_REF_TYPE === 'tag') assert.equal(process.env.GITHUB_REF_NAME, `v${pkg.version}`);
else assert.equal(process.env.GITHUB_REF, 'refs/heads/main');
NODE
- uses: actions/setup-node@v4
with:
node-version: '26.13.1'
registry-url: https://registry.npmjs.org
- uses: pnpm/action-setup@v4
with:
version: '10.34.9'
version: '12.18.0'
dest: ${{ runner.temp }}/pnpm-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}
run_install: false
- uses: actions/setup-node@v4
with:
node-version: '24.22.2'
registry-url: https://registry.npmjs.org
cache: pnpm
- name: Use the pinned npm version with OIDC support
run: npm install --global npm@11.19.1 --ignore-scripts --registry=https://registry.npmjs.org/
- name: Install
run: pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile --config.dangerously-allow-all-builds=true
- name: Build
run: pnpm run build
- name: Test
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '26.13.1'
- uses: pnpm/action-setup@v4
with:
version: '10.34.9'
version: '12.18.0'
dest: ${{ runner.temp }}/pnpm-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}
run_install: false
- uses: actions/setup-node@v4
with:
node-version: '24.22.2'
- run: pnpm install --frozen-lockfile
- run: pnpm --dir tools/quality --ignore-workspace install --lockfile-dir "$PWD/quality/tooling" --frozen-lockfile --ignore-scripts
- run: pnpm install --frozen-lockfile --config.dangerously-allow-all-builds=true
- run: pnpm --dir tools/quality --ignore-workspace install --lockfile-dir "$PWD/quality/tooling" --frozen-lockfile --ignore-scripts --config.engine-strict=false
- run: pnpm run test:preset
- run: pnpm run quality:guards
- run: pnpm run format:check
Expand Down Expand Up @@ -56,14 +56,14 @@ jobs:
node: ['18', '20', '22', '24']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '26.13.1'
- uses: pnpm/action-setup@v4
with:
version: '10.34.9'
version: '12.18.0'
dest: ${{ runner.temp }}/pnpm-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}
run_install: false
- uses: actions/setup-node@v4
with:
node-version: '24.22.2'
- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm run build
- name: Pack the actual distributable
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dangerously-allow-all-builds=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24.22.2
26.13.1
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Quality and ownership

Profile A, Node 24.22.2. SDK/tooling maintainers own this repository. The public package entrypoints are defined in package.json; framework registration and executable consumers must remain intact. Imports must be acyclic at runtime, production cannot import tests, and dependency boundaries are enforced in `.dependency-cruiser.cjs`. `quality.config.mjs` is the source inventory and exact generated-path declaration.
Profile A, Node 26.13.1. SDK/tooling maintainers own this repository. The public package entrypoints are defined in package.json; framework registration and executable consumers must remain intact. Imports must be acyclic at runtime, production cannot import tests, and dependency boundaries are enforced in `.dependency-cruiser.cjs`. `quality.config.mjs` is the source inventory and exact generated-path declaration.

Configuration belongs in the existing config/bootstrap adapters; pure conversion/validation helpers must not gain transport or environment reads. SDK and HTTP calls belong in the existing transport/client adapters. Keep complete scenarios readable at their application entrypoints; avoid pass-through facade layers. Comments on new/changed functions describe purpose, inputs/results, invariants and relevant failure/resource ownership. Check comments against behavior rather than repeating the function name.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"engines": {
"node": ">=18.0.0"
},
"packageManager": "pnpm@10.34.9",
"packageManager": "pnpm@12.18.0",
"lint-staged": {
"*.{js,jsx,mjs,cjs}": [
"node tools/quality/staged.mjs --config eslint.config.mjs --",
Expand Down
158 changes: 158 additions & 0 deletions pnpm-lock.yaml

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

Loading
Loading