Skip to content

chore: update build version to 1.1.1 #55

chore: update build version to 1.1.1

chore: update build version to 1.1.1 #55

Workflow file for this run

name: Commitlint
on:
push:
branches:
- 'push-action/**'
pull_request:
types: [opened, edited, synchronize, reopened]
concurrency:
group: commitlint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-commits:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install commitlint config conventional
run: |
npm install @commitlint/config-conventional
- name: Create commitlint config file
run: |
cat <<EEE > commitlint.config.js
const { rules } = require('@commitlint/config-conventional');
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', [...rules['type-enum'][2], 'release']],
'scope-enum': [2, 'always', ['core', 'android-sdk', 'android-sample', 'deps']],
},
};
EEE
- name: Commitlint
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
- name: Commitlint on PR title
run: echo '${{ github.event.pull_request.title }}' | npx commitlint