Skip to content
/ ncc Public
forked from tool3/ncc

github action to compile your nodejs code and push to a destination branch

License

Notifications You must be signed in to change notification settings

sidey79/ncc

This branch is 190 commits ahead of, 23 commits behind tool3/ncc:master.

Folders and files

NameName
Last commit message
Last commit date
Jan 12, 2025
Jan 12, 2025
Feb 1, 2025
Mar 10, 2020
Mar 10, 2020
Oct 3, 2021
Jan 6, 2022
Jan 12, 2025
Jun 2, 2024
Jan 12, 2025
Jan 12, 2025
Jan 12, 2025
Dec 4, 2023
Feb 8, 2025

Repository files navigation

ncc action

ncc
github action to compile your github action
uses @vercel/ncc

motivation

  • forked from tool3/ncc but i disliked the combination of compiling and pushing into a single action

usage

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - uses: sidey79/ncc@v1.0.0
      with:
        src: 'index.js'
                
    # Push back the created dist file to your branch            
    - uses: EndBug/add-and-commit@v7
      with:
        message: Commit Dist file
        committer_name: GitHub Actions
        committer_email: actions@github.com
        add: 'dist'
        signoff: true
        push: true
        

this will:

  • compile index.js from the repo root directory.
  • save the result into dist directory to the working directory.

options

src

required
default: index.js

ncc_args

command seperated args for ncc
exmaple: '-o, other_dist, -C'

About

github action to compile your nodejs code and push to a destination branch

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%