Skip to content

Commit

Permalink
Merge branch 'main' into chore/deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkeyl authored Jul 31, 2024
2 parents 10e26a8 + c2186f5 commit 34cec93
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ jobs:
- name: Install Dependencies
run: pnpm i

- name: Extract Commit Message (Push)
if: ${{ github.event_name }} == 'push'
run: |
git log -1 --pretty=%B > commit_message.txt
- name: Extract Commit Message (Pull Request)
if: ${{ github.event_name }} == 'pull_request'
run: |
git show -s --format=%B > commit_message.txt
- name: Lint
env:
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: echo $COMMIT_MESSAGE | pnpm commitlint
run: |
COMMIT_MESSAGE=$(cat commit_message.txt)
echo "$COMMIT_MESSAGE" | pnpm commitlint
3 changes: 2 additions & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import { minify } from 'rollup-plugin-esbuild';
import alias from '@rollup/plugin-alias';
import typescript from '@rollup/plugin-typescript';

const sourceFolder = 'src';
const types = `${sourceFolder}/types`;
const fileName = 'index';
const indexFile = `src/${fileName}.ts`;
const types = 'src/types';

export default defineConfig([
{
Expand Down
6 changes: 3 additions & 3 deletions specs/define-config.spec-d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { describe, expectTypeOf, test as spec } from 'vitest';

import { Options } from 'semantic-release';
import { UserConfig } from '#types';

import { defineConfig } from '#src';

describe('Define Semantic Release Config', () => {
spec('define empty config', async () => {
expectTypeOf(defineConfig({})).toEqualTypeOf<Options>();
expectTypeOf(defineConfig({})).toEqualTypeOf<UserConfig>();
});

spec('define config', async () => {
Expand All @@ -22,6 +22,6 @@ describe('Define Semantic Release Config', () => {
repositoryUrl: '',
tagFormat: '',
}),
).toEqualTypeOf<Options>();
).toEqualTypeOf<UserConfig>();
});
});
2 changes: 0 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ export default defineConfig({
watch: false,
coverage: {
all: false,
provider: 'v8',
reporter: 'text',
},
},
});

0 comments on commit 34cec93

Please sign in to comment.