GitHub Action
auto-ci
v1.0.8
Latest version
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
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
- configPath: Path to your config file
- modulesDir: Root Directory of your modules
Config file template is here
More examples see here