Skip to content

Commit b5ffc39

Browse files
committed
feat: ci
1 parent 2efa1c7 commit b5ffc39

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
test:
2727
timeout-minutes: 10
2828
runs-on: ubuntu-latest
29-
name: "Build&Test: node-lts, ubuntu-latest"
29+
name: 'Build&Test: node-lts, ubuntu-latest'
3030
steps:
3131
- name: ⤵️ Checkout
3232
uses: actions/checkout@v4
@@ -65,7 +65,7 @@ jobs:
6565
lint:
6666
timeout-minutes: 10
6767
runs-on: ubuntu-latest
68-
name: "Lint: node-lts, ubuntu-latest"
68+
name: 'Lint: node-lts, ubuntu-latest'
6969
steps:
7070
- name: ⤵️ Checkout
7171
uses: actions/checkout@v4

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 🚀 Publish Package
33
on:
44
push:
55
tags:
6-
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
6+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
77

88
jobs:
99
publish:

.github/workflows/release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 🚀 Add GitHub Release Tag
33
on:
44
push:
55
tags:
6-
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
6+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
77

88
# $GITHUB_REF_NAME - https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
99

vite.config.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { basename, resolve } from 'path'
1+
import { basename, resolve } from 'node:path'
22
import { defineConfig } from 'vite'
33
import { browser, name } from './package.json'
44

@@ -8,12 +8,13 @@ export default defineConfig({
88
build: {
99
lib: {
1010
formats: ['umd'],
11-
fileName: format => {
12-
if (format === 'umd') return basename(browser)
13-
return `${ name }.${ format }`
11+
fileName: (format) => {
12+
if (format === 'umd')
13+
return basename(browser)
14+
return `${name}.${format}`
1415
},
1516
entry: resolvePath('./src/index.ts'),
16-
name: name.replace(/-(\w)/ig, (_, v) => v.toUpperCase()),
17+
name: name.replace(/-(\w)/g, (_, v) => v.toUpperCase()),
1718
},
1819
},
1920
})

0 commit comments

Comments
 (0)