Skip to content

wangziling100/AutoCI

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Introduction

The purpose of this project is to implement a common CI process, which will perform some operations of the parasitic project itself. The parasitic project is usually a project generated by a project template, which generates a configuration file suitable for the ci process. The project should be suitable for monorepo, and diverse development languages. Action will analyze the user's Git Commit, and then publish the corresponding module according to the regulations. The specific regulations are as follows:

  • Branch naming rules: <workspace>@@<branch name>
  • commit follows the form of "<commit type>: <workspace>@@<commit content>
  • Commit type has "init", "feat", "fix", "breaking change"
  • workspace is the module to be processed
  • If the workplace is not set, the action works for the entire project

Quick Start

name: Node.js Auto Publish

on:
  push

jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: auto-ci
        uses: wangziling100/AutoCI@v1.0.4
        with:
          configPath: .github/autoci.config.json
          #modulesDir: packages
  publish:
    runs-on: ubuntu-latest
    needs: ci
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: 12
          #always-auth: true
          #registry-url: https://registry.npmjs.org/
      - uses: wangziling100/AutoPublish@v1.1
        with:
          scope: '@wangziling100'
          strict_error: false
        env:
          NPM_TOKEN: ${{secrets.NPM_TOKEN}}
          #GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

configPath is required

Parameter Descriptions

  • configPath: Path to your config file
  • modulesDir: Root Directory of your modules

Config file template is here

Example

More examples see here