diff --git a/src/glob-patterns.ts b/src/glob-patterns.ts index c0618eb..d1465af 100644 --- a/src/glob-patterns.ts +++ b/src/glob-patterns.ts @@ -3,8 +3,8 @@ import fs from 'node:fs'; import type { Arguments } from './types'; const templates: Record = { - 'composite-action': ['action.{yml,yaml}', 'LICENSE'], - 'javascript-action': ['action.{yml,yaml}', 'dist/**', 'LICENSE'], + 'composite-action': ['action.{yml,yaml}', 'LICENSE', 'README{,.md}'], + 'javascript-action': ['action.{yml,yaml}', 'dist/**', 'LICENSE', 'README{,.md}'], }; const extractNames = (input: string) => diff --git a/test/glob-patterns.spec.ts b/test/glob-patterns.spec.ts index bfae728..83c18aa 100644 --- a/test/glob-patterns.spec.ts +++ b/test/glob-patterns.spec.ts @@ -19,7 +19,7 @@ describe('glob patterns tests', () => { const result = getIncludePatterns(args); - expect(result).toEqual(['action.{yml,yaml}', 'LICENSE']); + expect(result).toEqual(['action.{yml,yaml}', 'LICENSE', 'README{,.md}']); }); it('returns a javascript-action pattern when template is javascript-action', () => { @@ -27,7 +27,7 @@ describe('glob patterns tests', () => { const result = getIncludePatterns(args); - expect(result).toEqual(['action.{yml,yaml}', 'dist/**', 'LICENSE']); + expect(result).toEqual(['action.{yml,yaml}', 'dist/**', 'LICENSE', 'README{,.md}']); }); it('throws an error when an invalid template is specified', () => { @@ -74,6 +74,7 @@ describe('glob patterns tests', () => { 'action.{yml,yaml}', 'dist/**', 'LICENSE', + 'README{,.md}', 'README.md', '!src/*.ts', ]);