mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
ci(release_oxlint): split out github release job
This commit is contained in:
parent
5d42df8dd6
commit
1eab12a03a
1 changed files with 31 additions and 21 deletions
52
.github/workflows/release_oxlint.yml
vendored
52
.github/workflows/release_oxlint.yml
vendored
|
|
@ -148,30 +148,12 @@ jobs:
|
||||||
needs: [check, build]
|
needs: [check, build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # for softprops/action-gh-release@v1.3.1
|
|
||||||
id-token: write # for `pnpm publish --provenance`
|
id-token: write # for `pnpm publish --provenance`
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # for changelog
|
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
|
|
||||||
with:
|
|
||||||
restore-cache: false
|
|
||||||
tools: cargo-release-oxc
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
mkdir -p target
|
|
||||||
cargo release-oxc changelog --release oxlint
|
|
||||||
{
|
|
||||||
echo 'CHANGELOG<<EOF'
|
|
||||||
cat ./target/OXC_CHANGELOG
|
|
||||||
echo EOF
|
|
||||||
} >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
|
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
|
||||||
with:
|
with:
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
@ -203,8 +185,36 @@ jobs:
|
||||||
echo '----'
|
echo '----'
|
||||||
done
|
done
|
||||||
|
|
||||||
|
github_release:
|
||||||
|
name: GitHub Release
|
||||||
|
needs: [publish]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write # for softprops/action-gh-release@v1.3.1
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # for changelog
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
|
||||||
|
with:
|
||||||
|
restore-cache: false
|
||||||
|
tools: cargo-release-oxc
|
||||||
|
|
||||||
|
- name: Run
|
||||||
|
id: run
|
||||||
|
run: |
|
||||||
|
mkdir -p target
|
||||||
|
cargo release-oxc changelog --release oxlint
|
||||||
|
{
|
||||||
|
echo 'CHANGELOG<<EOF'
|
||||||
|
cat ./target/OXC_CHANGELOG
|
||||||
|
echo EOF
|
||||||
|
} >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
|
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
|
||||||
with:
|
with:
|
||||||
body: ${{ steps.run.outputs.CHANGELOG }}
|
body: ${{ steps.run.outputs.CHANGELOG }}
|
||||||
draft: false
|
draft: false
|
||||||
|
|
@ -218,7 +228,7 @@ jobs:
|
||||||
run: sleep 180s
|
run: sleep 180s
|
||||||
|
|
||||||
smoke:
|
smoke:
|
||||||
needs: [check, publish]
|
needs: [check, publish, github_release]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|
@ -240,7 +250,7 @@ jobs:
|
||||||
npx oxlint@${OXLINT_VERSION} ./test.js
|
npx oxlint@${OXLINT_VERSION} ./test.js
|
||||||
|
|
||||||
eslint-plugin-oxlint:
|
eslint-plugin-oxlint:
|
||||||
needs: [check, publish, smoke]
|
needs: [check, publish, github_release, smoke]
|
||||||
name: Update eslint-plugin-oxlint
|
name: Update eslint-plugin-oxlint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue