Skip to content

Commit

Permalink
chore(ci): build on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Oct 11, 2024
1 parent bd416f4 commit 384f49a
Show file tree
Hide file tree
Showing 20 changed files with 39 additions and 2,414 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build

on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
- 'renovate/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/pnpm

- name: Build
run: pnpm run build
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:

- uses: ./.github/actions/pnpm

- name: Build
run: pnpm run build

- name: Extract version from commit message
run: |
VERSION=$(echo "${{ github.event.head_commit.message }}" | grep -oP 'release: \Kv[0-9]+\.[0-9]+\.[0-9]+')
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pnpm-lock.yaml
lib/
dist/
~
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,6 @@ new rules that haven't been released will not be included.
pnpm generate
```

build cjs and esm versions of the library

```shell
pnpm build
```

## License

[MIT](https://github.com/Dunqing/eslint-plugin-oxlint/blob/main/LICENSE)
2 changes: 1 addition & 1 deletion eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export default [
eslintConfigPrettier,
oxlint.configs['flat/all'],
{
ignores: ['lib/'],
ignores: ['dist/'],
},
];
26 changes: 0 additions & 26 deletions lib/index.cjs

This file was deleted.

303 changes: 0 additions & 303 deletions lib/index.d.ts

This file was deleted.

Loading

0 comments on commit 384f49a

Please sign in to comment.