Skip to content

Commit

Permalink
chore(ci): build on release (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix authored Oct 11, 2024
1 parent bd416f4 commit ec4e63a
Show file tree
Hide file tree
Showing 21 changed files with 39 additions and 2,415 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
1 change: 0 additions & 1 deletion .github/workflows/bump_oxlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
pnpm run generate # Generate rules from latest oxlint
pnpm run format # run prettier over it
pnpm run test -u # Update test snapshots
pnpm run build # build cjs, mjs and d.ts files
npm version ${{ inputs.version }} --no-git-tag-version
- uses: peter-evans/create-pull-request@v7
Expand Down
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 ec4e63a

Please sign in to comment.