Skip to content

Modernize release workflow to eliminate Node 20 and set‑output deprecations#32

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/update-github-workflow-releasing-version
Draft

Modernize release workflow to eliminate Node 20 and set‑output deprecations#32
Copilot wants to merge 2 commits into
mainfrom
copilot/update-github-workflow-releasing-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 20, 2026

The release workflow emitted deprecation warnings for Node.js 20–based actions and set-output usage. This update refreshes the release pipeline to supported actions and removes the deprecated release/upload flow while preserving the draft release behavior.

  • Workflow action updates

    • Move to actions/checkout@v4 and actions/setup-node@v4.
    • Opt into Node.js 24 for JS actions and set the runner to Node 24.
  • Release publishing

    • Replace actions/create-release@v1 + actions/upload-release-asset@v1 with softprops/action-gh-release@v2 and attach the userscript directly.

Example (new release step):

- name: Create GitHub Release
  uses: softprops/action-gh-release@v2
  with:
    tag_name: ${{ github.ref_name }}
    name: ${{ github.ref_name }}
    draft: true
    files: |
      dist/inskewl.user.js

Agent-Logs-Url: https://github.com/MathiasDevelopes/inskewl/sessions/d2b73831-9c5e-4fd1-82ad-6678a42eec9e

Co-authored-by: MathiasDevelopes <25400788+MathiasDevelopes@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GitHub workflow for releasing new version Modernize release workflow to eliminate Node 20 and set‑output deprecations May 20, 2026
Copilot AI requested a review from MathiasDevelopes May 20, 2026 20:53
@MathiasDevelopes MathiasDevelopes requested a review from Copilot May 21, 2026 16:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GitHub Actions release workflow to remove deprecation warnings by modernizing action versions, moving the build to Node.js 24, and switching to a single-step GitHub Release + asset upload action while keeping releases as drafts.

Changes:

  • Upgraded actions/checkout and actions/setup-node to @v4 and set the build Node.js version to 24.
  • Replaced actions/create-release + actions/upload-release-asset with softprops/action-gh-release@v2, attaching dist/inskewl.user.js directly.
  • Added a job-level env var intended to force JavaScript actions onto Node 24.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: update github workflow for releasing new version

3 participants