From f1a8f17a5b8fd3d217621f9bc492a604d1a2b56d Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Fri, 22 May 2026 20:46:28 +0100 Subject: [PATCH 1/6] ci(npm-publish-simulation): don't clean cache --- .github/workflows/npm-publish-simulation.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish-simulation.yml b/.github/workflows/npm-publish-simulation.yml index 746bdc9e8..d9d996cc6 100644 --- a/.github/workflows/npm-publish-simulation.yml +++ b/.github/workflows/npm-publish-simulation.yml @@ -34,6 +34,7 @@ jobs: id: build working-directory: mdn/fred run: | + npm pkg set _gitSha=${{ github.sha }} npm pack TARBALL=`ls mdn-fred-*.tgz` echo $TARBALL @@ -81,7 +82,6 @@ jobs: working-directory: mdn/content shell: bash run: | - npm cache clean --force TARBALL=$(ls ../../mdn-fred-*.tgz) npm install file:$TARBALL npm install @@ -89,6 +89,11 @@ jobs: # Increase GitHub API limit. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: (mdn/content) Verify correct fred installed + working-directory: mdn/content/node_modules/@mdn/fred + shell: bash + run: test "$(npm pkg get _gitSha --json)" = '"${{ github.sha }}"' + - name: (mdn/content) Render (Linux) if: runner.os == 'Linux' working-directory: mdn/content From c91c5954fb63ddd91a9060746dcdccf65d324c3c Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Fri, 22 May 2026 20:53:30 +0100 Subject: [PATCH 2/6] update git hash From cc02a09a860f41c076f8f0ff05c710591ff8878b Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Fri, 22 May 2026 21:24:03 +0100 Subject: [PATCH 3/6] move npm cache to D: drive on windows --- .github/workflows/npm-publish-simulation.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/npm-publish-simulation.yml b/.github/workflows/npm-publish-simulation.yml index d9d996cc6..759713097 100644 --- a/.github/workflows/npm-publish-simulation.yml +++ b/.github/workflows/npm-publish-simulation.yml @@ -59,6 +59,10 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: "Move npm cache to D: drive" + if: runner.os == 'Windows' + run: echo "npm_config_cache=D:\npm-cache" >> $env:GITHUB_ENV + - name: (mdn/content) Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: From bd7ebedd385d9cd8c54de07c5633eee20da19206 Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Tue, 26 May 2026 11:50:50 +0100 Subject: [PATCH 4/6] update git hash From 822082cef3b04271a8420a314391bd8ab3123ed6 Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Tue, 26 May 2026 11:58:19 +0100 Subject: [PATCH 5/6] test different hash fails --- .github/workflows/npm-publish-simulation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish-simulation.yml b/.github/workflows/npm-publish-simulation.yml index 759713097..f96516f05 100644 --- a/.github/workflows/npm-publish-simulation.yml +++ b/.github/workflows/npm-publish-simulation.yml @@ -34,7 +34,7 @@ jobs: id: build working-directory: mdn/fred run: | - npm pkg set _gitSha=${{ github.sha }} + npm pkg set _gitSha=foobar npm pack TARBALL=`ls mdn-fred-*.tgz` echo $TARBALL From 91c5b1ba0fe72833a4c7666b3b0be22399056614 Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Tue, 26 May 2026 16:16:18 +0100 Subject: [PATCH 6/6] Revert "test different hash fails" This reverts commit 822082cef3b04271a8420a314391bd8ab3123ed6. --- .github/workflows/npm-publish-simulation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish-simulation.yml b/.github/workflows/npm-publish-simulation.yml index f96516f05..759713097 100644 --- a/.github/workflows/npm-publish-simulation.yml +++ b/.github/workflows/npm-publish-simulation.yml @@ -34,7 +34,7 @@ jobs: id: build working-directory: mdn/fred run: | - npm pkg set _gitSha=foobar + npm pkg set _gitSha=${{ github.sha }} npm pack TARBALL=`ls mdn-fred-*.tgz` echo $TARBALL