Skip to content

Commit

Permalink
ci: fix release oxlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jun 7, 2024
1 parent f849efa commit 4b9a365
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions .github/workflows/release_oxlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,39 @@ on:
push:
branches:
- main
paths:
- npm/oxlint/package.json # Please only commit this file, so we don't need to wait for all the other CI jobs to finish.
- release-oxlint
# paths:
# - npm/oxlint/package.json # Please only commit this file, so we don't need to wait for all the other CI jobs to finish.

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
name: Check version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
version_changed: ${{ steps.version.outputs.changed }}
steps:
- uses: taiki-e/checkout-action@v1

- name: Check version changes
uses: EndBug/version-check@v2
id: version
with:
static-checking: localIsNew
file-url: https://unpkg.com/oxlint@latest/package.json
file-name: npm/oxlint/package.json

- name: Set version name
if: steps.version.outputs.changed == 'true'
run: |
echo "Version change found! New version: ${{ steps.version.outputs.version }} (${{ steps.version.outputs.version_type }})"
# check:
# name: Check version
# runs-on: ubuntu-latest
# outputs:
# version_changed: ${{ steps.version.outputs.changed }}
# steps:
# - uses: taiki-e/checkout-action@v1

# - name: Check version changes
# uses: EndBug/version-check@v2
# id: version
# with:
# static-checking: localIsNew
# file-url: https://unpkg.com/oxlint@latest/package.json
# file-name: npm/oxlint/package.json

# - name: Set version name
# if: steps.version.outputs.changed == 'true'
# run: |
# echo "Version change found! New version: ${{ steps.version.outputs.version }} (${{ steps.version.outputs.version_type }})"

build:
needs: check
if: needs.check.outputs.version_changed == 'true'
env:
version: ${{ needs.check.outputs.version }}
# needs: check
# if: needs.check.outputs.version_changed == 'true'
strategy:
matrix:
include:
Expand Down Expand Up @@ -154,7 +152,7 @@ jobs:
run: |
{
echo 'OUTPUT<<EOF'
cargo release-oxc changelog --release ${{ inputs.name }}
cargo release-oxc changelog --release oxlint
echo EOF
} >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 4b9a365

Please sign in to comment.