Skip to content

Demo and template of a TypeScript GitHub Action with no build process needed now that GH supports Node 24

License

Notifications You must be signed in to change notification settings

bmuenzenmeyer/nodejs-version-logger-typescript-action

Repository files navigation

Node Version Logger TypeScript Action

A simple GitHub Action written in TypeScript that logs the Node.js version the action is running with.

Usage

Add the following to a workflow in your repository:

name: Demo Node Version Action

on:
  workflow_dispatch:

jobs:
  test-action:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4 #use a sha in production
      - name: Run Node Version Logger
        uses: @bmuenzenmeyer/nodejs-version-logger-typescript-action@main #use a sha in production

Example Output

When run, the action will log something like:

Node version (process.versions.node): 24.6.0

Files

  • action.yml — metadata that tells GitHub how to run the action
  • index.ts — TypeScript implementation
  • .github/workflows/demo.yml — sample workflow for testing the action

About

Demo and template of a TypeScript GitHub Action with no build process needed now that GH supports Node 24

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •