This GitHub Action allows you to compare Node.js versions in your workflow, ensuring compatibility and consistency across environments.
- Version Comparison: Easily compare Node.js versions used in your project.
- Dockerized: Runs in a Docker container for consistent environments.
To use the Compare Node Versions Action in your workflow, follow these steps:
Create or update your .github/workflows/[workflow name].yml
file in your repository:
name: Node Version Check
on: [push, pull_request]
jobs:
compare-node-versions:
runs-on: ubuntu-latest
name: Compare Node Versions
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Compare Node Versions
uses: simpleanalytics/[email protected]
Configure the action in your main.yml
workflow file:
- name: Compare Node Versions
uses: simpleanalytics/[email protected]
with:
# Add necessary inputs here
Here's a simple example to illustrate how to use this action:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compare Node Versions
uses: simpleanalytics/[email protected]
Contributions are welcome! Please open an issue or submit a pull request with your improvements.