Skip to content

Commit ec4e63a

Browse files
authored
chore(ci): build on release (#177)
1 parent bd416f4 commit ec4e63a

21 files changed

+39
-2415
lines changed

.github/workflows/build.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
push:
7+
branches:
8+
- main
9+
- 'renovate/**'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: ./.github/actions/pnpm
18+
19+
- name: Build
20+
run: pnpm run build

.github/workflows/bump_oxlint.yml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
pnpm run generate # Generate rules from latest oxlint
2626
pnpm run format # run prettier over it
2727
pnpm run test -u # Update test snapshots
28-
pnpm run build # build cjs, mjs and d.ts files
2928
npm version ${{ inputs.version }} --no-git-tag-version
3029
3130
- uses: peter-evans/create-pull-request@v7

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818

1919
- uses: ./.github/actions/pnpm
2020

21+
- name: Build
22+
run: pnpm run build
23+
2124
- name: Extract version from commit message
2225
run: |
2326
VERSION=$(echo "${{ github.event.head_commit.message }}" | grep -oP 'release: \Kv[0-9]+\.[0-9]+\.[0-9]+')

.prettierignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pnpm-lock.yaml
2-
lib/
2+
dist/
33
~

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@ new rules that haven't been released will not be included.
113113
pnpm generate
114114
```
115115

116-
build cjs and esm versions of the library
117-
118-
```shell
119-
pnpm build
120-
```
121-
122116
## License
123117

124118
[MIT](https://github.com/Dunqing/eslint-plugin-oxlint/blob/main/LICENSE)

eslint.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export default [
1111
eslintConfigPrettier,
1212
oxlint.configs['flat/all'],
1313
{
14-
ignores: ['lib/'],
14+
ignores: ['dist/'],
1515
},
1616
];

lib/index.cjs

-26
This file was deleted.

lib/index.d.ts

-303
This file was deleted.

0 commit comments

Comments
 (0)