-
Notifications
You must be signed in to change notification settings - Fork 18
use npm ci #2140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use npm ci #2140
Changes from all commits
0e6a3a4
9f604e6
645e706
066f03a
15a9376
fa856b4
ef09189
7ea7bcb
4547131
5593305
be1d55f
c2cf88a
e15d566
77f6db9
cac2268
5ff1c58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,6 +99,21 @@ jobs: | |
| COMMIT_SHA: ${{ github.sha }} | ||
| SENTRY_LOG_LEVEL: debug | ||
|
|
||
| # check for npm package blacklists pkgs across all tauri related packages | ||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: packages/orderbook | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: packages/ui-components | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: tauri-app | ||
|
|
||
|
Comment on lines
+102
to
+116
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Confirm scope and placement of blacklist checks.
Do you want me to refactor into a matrix or a reusable workflow and place it right after checkout? 🤖 Prompt for AI Agents |
||
| - uses: tauri-apps/tauri-action@v0 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,12 +44,25 @@ jobs: | |
| env: | ||
| PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID || 'test' }} | ||
|
|
||
| - run: nix develop -c npm run svelte-lint-format-check | ||
| working-directory: packages/webapp | ||
| - run: nix develop -c npm run svelte-lint-format-check -w @rainlanguage/webapp | ||
| env: | ||
| PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID || 'test' }} | ||
|
|
||
| - run: nix develop -c npm run test | ||
| working-directory: packages/webapp | ||
| - run: nix develop -c npm run test -w @rainlanguage/webapp | ||
| env: | ||
| PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID || 'test' }} | ||
|
Comment on lines
+47
to
53
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Use canonical npm workspace flag position. Place -w before run to avoid any npm option parsing ambiguity. - - run: nix develop -c npm run svelte-lint-format-check -w @rainlanguage/webapp
+ - run: nix develop -c npm -w @rainlanguage/webapp run svelte-lint-format-check
@@
- - run: nix develop -c npm run test -w @rainlanguage/webapp
+ - run: nix develop -c npm -w @rainlanguage/webapp run test🤖 Prompt for AI Agents |
||
|
|
||
|
rouzwelt marked this conversation as resolved.
|
||
| # check for npm package blacklists pkgs across all packages | ||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: packages/orderbook | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: packages/ui-components | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: packages/webapp | ||
|
Comment on lines
+55
to
+68
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Deduplicate blacklist runs or use a matrix. Same as other workflows: keep only root if it’s recursive, or matrix-ize. 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,6 +59,17 @@ jobs: | |
| env: | ||
| PUBLIC_WALLETCONNECT_PROJECT_ID: test | ||
|
|
||
| # check for npm package blacklists pkgs across all packages | ||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: packages/orderbook | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: packages/ui-components | ||
|
|
||
|
Comment on lines
+62
to
+72
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Fail fast: run blacklist before the build step. Move blacklist ahead of the build to abort earlier on violations. 🤖 Prompt for AI Agents |
||
| - name: Install Vercel CLI (local, pinned) | ||
| shell: bash --noprofile --norc -euo pipefail {0} | ||
| run: | | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -63,6 +63,17 @@ jobs: | |||||
| env: | ||||||
| PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }} | ||||||
|
|
||||||
| # check for npm package blacklists pkgs across all packages | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Fail fast: move blacklist checks before the build. Place blacklist steps before the webapp build to save CI time when a blocklist hit would fail anyway. 🤖 Prompt for AI Agents🧹 Nitpick (assertive) Nit: fix comment wording. Use “Check npm package blacklist across all workspaces.” - # check for npm package blacklists pkgs across all packages
+ # Check npm package blacklist across all workspaces📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||||||
|
|
||||||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||||||
| with: | ||||||
| working-directory: packages/orderbook | ||||||
|
|
||||||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||||||
| with: | ||||||
| working-directory: packages/ui-components | ||||||
|
|
||||||
| - name: Install Vercel CLI (local, pinned) | ||||||
| shell: bash --noprofile --norc -euo pipefail {0} | ||||||
| run: | | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,17 @@ jobs: | |
| env: | ||
| PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }} | ||
|
|
||
| # check for npm package blacklists pkgs across all packages | ||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: packages/orderbook | ||
|
|
||
| - uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main | ||
| with: | ||
| working-directory: packages/ui-components | ||
|
|
||
|
Comment on lines
+49
to
+59
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Fail fast: run blacklist before build. Move blacklist steps before packages/webapp build to avoid wasted cycles on failures. 🤖 Prompt for AI Agents |
||
| - name: Install Vercel CLI | ||
| run: npm install --global vercel@canary | ||
| - name: Pull Vercel Environment Information | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Add explicit step names for readability.
Unnamed steps make triage noisy. Give each a distinct name, e.g., “NPM blacklist (root)”, “NPM blacklist (orderbook)”, “NPM blacklist (ui-components)”.
Apply:
📝 Committable suggestion
🤖 Prompt for AI Agents
Pin the action to a commit SHA (avoid @main).
Using a moving ref is a supply‑chain risk. Pin each npm‑blacklist step to a specific commit SHA from rainlanguage/github-chore.
Apply:
Replace with the exact immutable digest. I can fetch and fill it in if you prefer.
🤖 Prompt for AI Agents