0.6.12 • Published 12 months ago

@technote-space/github-action-version-helper v0.6.12

Weekly downloads
40
License
MIT
Repository
github
Last release
12 months ago

Github Action Version Helper

npm version CI Status codecov CodeFactor License: MIT

Read this in other languages: English, 日本語.

GitHub Actions 用のバージョンヘルパー

Table of Contents

使用方法

  1. インストール
    • npm
      npm i @technote-space/github-action-version-helper
    • yarn
      yarn add @technote-space/github-action-version-helper
  2. 使用
import { Commit, Version } from '@technote-space/github-action-version-helper';

Commit

import { Commit } from '@technote-space/github-action-version-helper';

...

const types = ['feat', 'chore'];
const excludeMessages = ['trigger workflow'];
const breakingChangeNotes = ['BREAKING CHANGE'];
const commits = await Commit.getCommits(types, excludeMessages, breakingChangeNotes, octokit, context);

/**
例:__tests__/fixtures/commit.list2.json
[
	{
		'type': 'chore',
		'message': 'tweaks',
		'normalized': 'chore: tweaks',
		'original': 'chore: tweaks',
		'children': [],
		'notes': [],
		'sha': '2dcb09b5b57875f334f61aebed695e2e4193db5e',
	},
	{
		'type': 'feat',
		'message': 'add new features',
		'normalized': 'feat: add new features',
		'original': 'feat!: add new features',
		'children': [
			{
				'type': 'feat',
				'message': 'add new feature1 (#123)',
				'normalized': 'feat: add new feature1 (#123)',
				'original': 'feat: add new feature1 (#123)',
			},
			{
				'type': 'feat',
				'message': 'add new feature2 (#234)',
				'normalized': 'feat: add new feature2 (#234)',
				'original': 'feat: add new feature2 (#234)',
			},
		],
		'notes': ['BREAKING CHANGE: changed'],
		'sha': '3dcb09b5b57875f334f61aebed695e2e4193db5e',
	},
	{
		'type': 'feat',
		'message': 'add new feature3',
		'normalized': 'feat: add new feature3',
		'original': 'feat :  add new feature3',
		'children': [],
		'notes': [],
		'sha': '4dcb09b5b57875f334f61aebed695e2e4193db5e',
	},
	{
		'type': 'chore',
		'message': 'tweaks',
		'normalized': 'chore: tweaks',
		'original': 'chore: tweaks',
		'children': [],
		'notes': [],
		'sha': '9dcb09b5b57875f334f61aebed695e2e4193db5e',
	},
]
**/

Version

import { Version } from '@technote-space/github-action-version-helper';

...

const minorUpdateCommitTypes = ['feat'];
const excludeMessages = ['tweaks'];
const breakingChangeNotes = ['BREAKING CHANGE'];
const version = await Version.getNextVersion(minorUpdateCommitTypes, excludeMessages, breakingChangeNotes, helper, octokit, context);

/**
例:__tests__/fixtures/repos.git.matching-refs.json, __tests__/fixtures/commit.list3.json
v2.1.0
**/

Author

GitHub (Technote)
Blog

0.6.10

12 months ago

0.6.12

12 months ago

0.6.11

12 months ago

0.6.9

1 year ago

0.6.7

2 years ago

0.6.8

1 year ago

0.6.6

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.30

2 years ago

0.5.29

2 years ago

0.5.28

2 years ago

0.5.27

2 years ago

0.5.25

2 years ago

0.5.26

2 years ago

0.5.24

2 years ago

0.5.21

2 years ago

0.5.22

2 years ago

0.5.23

2 years ago

0.5.20

3 years ago

0.5.19

3 years ago

0.5.18

3 years ago

0.5.17

3 years ago

0.5.16

3 years ago

0.5.14

3 years ago

0.5.15

3 years ago

0.5.13

3 years ago

0.5.12

3 years ago

0.5.11

3 years ago

0.5.10

3 years ago

0.5.9

3 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.6

3 years ago

0.5.5

3 years ago

0.5.4

3 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago