Skip to content

Commit

Permalink
ci: update bump_oxlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jun 30, 2024
1 parent 15fd767 commit 15fbfca
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 56 deletions.
43 changes: 27 additions & 16 deletions .github/workflows/bump_oxlint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Bump oxlint

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
push:
branches:
- 'renovate/oxlint-**'
paths:
- package.json
- test-bump
workflow_dispatch:
inputs:
version:
required: false
type: string
issue-number:
required: false
type: string

permissions:
pull-requests: write
Expand All @@ -20,28 +24,35 @@ jobs:
bump-oxlint-rules:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # must use actions/checkout for `git-auto-commit-action` to work
- uses: actions/checkout@v4

- name: Install pnpm
run: corepack enable
- run: corepack enable

- name: Set node
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: pnpm

- name: Install Dependencies
run: pnpm i

- name: Bump oxlint rules
run: |
pnpm install
pnpm update oxlint
pnpm install
pnpm run clone
# Generate rules from latest oxlint
pnpm run generate
# Update test snapshots
pnpm run test -u
- uses: stefanzweifel/git-auto-commit-action@v5
- uses: peter-evans/create-pull-request@v6
with:
commit_message: 'bump oxlint'
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Release ${{ inputs.version }}
committer: Boshen <[email protected]>
author: Boshen <[email protected]>
branch: release
branch-suffix: timestamp
title: Release ${{ inputs.version }}
body: From https://github.com/oxc-project/oxc/pull/${{ inputs.issue-number }}
assignees: Boshen
base: main
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ jobs:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2
run: corepack enable

- name: Set node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- run: npx changelogithub
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"husky": "^9.0.11",
"lint-staged": "^15.2.5",
"memfs": "^4.9.2",
"oxlint": "^0.5.0",
"oxlint": "^0.5.1",
"prettier": "^3.3.1",
"shelljs": "^0.8.5",
"tsx": "^4.15.1",
Expand Down
74 changes: 37 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15fbfca

Please sign in to comment.