-
Notifications
You must be signed in to change notification settings - Fork 52
ci: bump pinned GitHub Actions to their Node 24 majors #97
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -33,13 +33,13 @@ jobs: | |
| runs-on: windows-latest | ||
|
Collaborator
Author
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. ✓ Bump to |
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v7 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: ./.github/actions/setup | ||
|
|
||
| - name: Cache caption assets | ||
| uses: actions/cache@v4 | ||
| uses: actions/cache@v6 | ||
| with: | ||
| path: caption-assets | ||
| key: caption-assets-${{ runner.os }}-${{ hashFiles('scripts/fetch-caption-model.mjs') }} | ||
|
|
@@ -48,7 +48,7 @@ jobs: | |
| run: npm run build:win -- --publish never | ||
|
|
||
| - name: Upload Windows installer | ||
| uses: actions/upload-artifact@v4 | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: openscreen-windows | ||
| path: release/**/Openscreen.Setup.*.exe | ||
|
|
@@ -64,13 +64,13 @@ jobs: | |
| arch: ${{ fromJSON((github.event_name == 'workflow_dispatch' && github.event.inputs.arch != 'both') && format('["{0}"]', github.event.inputs.arch) || '["arm64", "x64"]') }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v7 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: ./.github/actions/setup | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.11" | ||
|
|
||
|
|
@@ -80,7 +80,7 @@ jobs: | |
| npm_config_build_from_source: "false" | ||
|
|
||
| - name: Cache caption assets | ||
| uses: actions/cache@v4 | ||
| uses: actions/cache@v6 | ||
| with: | ||
| path: caption-assets | ||
| key: caption-assets-${{ runner.os }}-${{ hashFiles('scripts/fetch-caption-model.mjs') }} | ||
|
|
@@ -218,7 +218,7 @@ jobs: | |
| spctl -a -vv -t install "${{ steps.dmg.outputs.dmg_path }}" | ||
|
|
||
| - name: Upload macOS DMG | ||
| uses: actions/upload-artifact@v4 | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: openscreen-mac-${{ matrix.arch }} | ||
| path: ${{ steps.dmg.outputs.dmg_path }} | ||
|
|
@@ -234,7 +234,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v7 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: ./.github/actions/setup | ||
|
|
@@ -243,7 +243,7 @@ jobs: | |
| run: sudo apt-get update && sudo apt-get install -y libarchive-tools | ||
|
|
||
| - name: Cache caption assets | ||
| uses: actions/cache@v4 | ||
| uses: actions/cache@v6 | ||
| with: | ||
| path: caption-assets | ||
| key: caption-assets-${{ runner.os }}-${{ hashFiles('scripts/fetch-caption-model.mjs') }} | ||
|
|
@@ -252,7 +252,7 @@ jobs: | |
| run: npm run build:linux -- --publish never | ||
|
|
||
| - name: Upload Linux packages | ||
| uses: actions/upload-artifact@v4 | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: openscreen-linux | ||
| path: | | ||
|
|
@@ -273,7 +273,7 @@ jobs: | |
| if: ${{ (github.event_name == 'push' && github.ref_type == 'tag') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release_tag != '') }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v7 | ||
|
|
||
| - name: Resolve release tag | ||
| id: release | ||
|
|
@@ -331,27 +331,27 @@ jobs: | |
| echo "notes_start_tag=$NOTES_START_TAG" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Download Windows installer | ||
| uses: actions/download-artifact@v4 | ||
| uses: actions/download-artifact@v8 | ||
| with: | ||
| name: openscreen-windows | ||
| path: artifacts/windows | ||
|
|
||
| - name: Download macOS arm64 DMG | ||
| continue-on-error: true | ||
| uses: actions/download-artifact@v4 | ||
| uses: actions/download-artifact@v8 | ||
| with: | ||
| name: openscreen-mac-arm64 | ||
| path: artifacts/mac-arm64 | ||
|
|
||
| - name: Download macOS x64 DMG | ||
| continue-on-error: true | ||
| uses: actions/download-artifact@v4 | ||
| uses: actions/download-artifact@v8 | ||
| with: | ||
| name: openscreen-mac-x64 | ||
| path: artifacts/mac-x64 | ||
|
|
||
| - name: Download Linux packages | ||
| uses: actions/download-artifact@v4 | ||
| uses: actions/download-artifact@v8 | ||
| with: | ||
| name: openscreen-linux | ||
| path: artifacts/linux | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,23 +11,23 @@ jobs: | |
| name: Lint | ||
|
Collaborator
Author
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. ✓ All four bumps here are |
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v7 | ||
| - uses: ./.github/actions/setup | ||
| - run: npm run lint | ||
|
|
||
| typecheck: | ||
| name: Type Check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v7 | ||
| - uses: ./.github/actions/setup | ||
| - run: npx tsc --noEmit | ||
|
|
||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v7 | ||
| - uses: ./.github/actions/setup | ||
| - run: npm run test | ||
| - run: npm run test:browser:install | ||
|
|
@@ -37,7 +37,7 @@ jobs: | |
| name: Build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v7 | ||
| - uses: ./.github/actions/setup | ||
| - run: npx vite build | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ jobs: | |
| name: Windows x64 diagnostic bundle | ||
|
Collaborator
Author
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. ✓ |
||
| runs-on: windows-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v7 | ||
|
|
||
| - uses: ./.github/actions/setup | ||
|
|
||
|
|
@@ -58,7 +58,7 @@ jobs: | |
| if ($LASTEXITCODE -ne 0) { throw "diagnostic.bat --help exited $LASTEXITCODE" } | ||
|
|
||
| - name: Upload Windows diagnostic bundle | ||
| uses: actions/upload-artifact@v4 | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: openscreen-diagnostic-windows-x64 | ||
| path: openscreen-diagnostic-windows-x64.zip | ||
|
|
@@ -73,7 +73,7 @@ jobs: | |
| matrix: | ||
| arch: [arm64, x64] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v7 | ||
|
|
||
| - uses: ./.github/actions/setup | ||
|
|
||
|
|
@@ -98,7 +98,7 @@ jobs: | |
| tar -czf "$bundle.tar.gz" "$bundle" | ||
|
|
||
| - name: Upload macOS diagnostic bundle | ||
| uses: actions/upload-artifact@v4 | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: openscreen-diagnostic-macos-${{ matrix.arch }} | ||
| path: openscreen-diagnostic-macos-${{ matrix.arch }}.tar.gz | ||
|
|
||
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.
✓ Correct bump.
setup-node@v7declaresusing: node24at this tag. Note thatnode-version: 22on line 8 is intentional — the app'spackage.json#enginespins Node 22.22.1, and the composite action installs Node 22 fornpm ci. The Node 24 only affects the runner side (the action'sdist/setup/index.js), not the version installed for the app. No drift between runner-side (24) and app-side (22); the two are independent.Recommend a one-line comment in this file (or in
docs/github-actions-workflows.md) explaining the distinction so future maintainers don't "fix" thenode-version: 22tonode-version: 24.