A simple GitHub Action written in TypeScript that logs the Node.js version the action is running with.
- 1️⃣ Workflow Config targeting Node 24
- 2️⃣ Action Source Code (TypeScript only!)
- 3️⃣ Run Demo
- 4️⃣ Profit! No build process!
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
When run, the action will log something like:
Node version (process.versions.node): 24.6.0
action.yml
— metadata that tells GitHub how to run the actionindex.ts
— TypeScript implementation.github/workflows/demo.yml
— sample workflow for testing the action