Skip to content
Open
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
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
node-version: 22

- name: Install workspace deps
run: npm ci
run: npm ci --ignore-scripts

- name: Run codegen
run: ./scripts/codegen.sh
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
name: codegen-output

- name: Install
run: npm ci
run: npm ci --ignore-scripts

- name: Build
run: npm run build --prefix js/packages/truapi
Expand Down Expand Up @@ -143,7 +143,9 @@ jobs:
name: codegen-output

- name: Install workspace deps + build @parity/truapi
run: npm ci
run: |
npm ci --ignore-scripts
npm run build --prefix js/packages/truapi

- name: Install playground deps
working-directory: playground
Expand Down Expand Up @@ -186,7 +188,9 @@ jobs:
name: codegen-output

- name: Install workspace deps + build @parity/truapi
run: npm ci
run: |
npm ci --ignore-scripts
npm run build --prefix js/packages/truapi

- name: Install explorer deps
working-directory: explorer
Expand Down Expand Up @@ -229,7 +233,9 @@ jobs:
name: codegen-output

- name: Build @parity/truapi
run: npm ci
run: |
npm ci --ignore-scripts
npm run build --prefix js/packages/truapi

- name: Install dotli deps
working-directory: hosts/dotli
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/diagnosis-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
BODY: ${{ github.event.issue.body }}
ISSUE: ${{ github.event.issue.number }}
REPO: ${{ github.repository }}
run: |
set -euo pipefail

Expand Down Expand Up @@ -64,7 +65,7 @@ jobs:
fi
git add "$file"
git commit -m "diagnosis: update $host report (from #$ISSUE)"
git push -f origin "$branch"
git push -f "https://x-access-token:${GH_TOKEN}@github.com/${REPO}.git" "$branch"

# One open PR per host branch: reuse it while it is open, open a new
# one once the previous report has merged (a merged/closed PR for the
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@ jobs:
env:
STEPS_VERSION_OUTPUTS_TAG: ${{ steps.version.outputs.tag }}

# --ignore-scripts skips the `prepare` hook so we don't rebuild what
# the Build step just produced.
- name: Pack package
if: steps.version.outputs.proceed == 'true'
run: |
mkdir -p artifacts
(cd js/packages/truapi && npm pack --ignore-scripts --pack-destination "$GITHUB_WORKSPACE/artifacts/")
(cd js/packages/truapi && npm pack --pack-destination "$GITHUB_WORKSPACE/artifacts/")

- name: Upload package artifacts
if: steps.version.outputs.proceed == 'true'
Expand Down
1 change: 0 additions & 1 deletion js/packages/truapi-host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"ensure-generated": "./scripts/ensure-generated.sh",
"build": "tsc",
"prebuild": "npm run ensure-generated",
"prepare": "npm run build",
"codegen": "cargo run -p truapi-codegen -- --input ../../../target/doc/truapi.json --output ../truapi/src/generated --host-output src/generated",
"typecheck": "npm run build",
"pretest": "npm run ensure-generated",
Expand Down
1 change: 0 additions & 1 deletion js/packages/truapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"ensure-generated": "./scripts/ensure-generated.sh",
"build": "tsc",
"prebuild": "npm run ensure-generated",
"prepare": "npm run build",
"codegen": "cargo run -p truapi-codegen -- --input ../../../target/doc/truapi.json --output src/generated --playground-output src/playground --explorer-output src/explorer",
"typecheck": "npm run build",
"pretest": "npm run ensure-generated",
Expand Down