Skip to content

Commit

Permalink
ci: group nightly steps
Browse files Browse the repository at this point in the history
  • Loading branch information
nhedger committed Nov 7, 2023
1 parent 0373d01 commit 19c2417
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,29 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Retrieve version from package.json
id: packageJsonVersion
run: echo "version=$(jq -r '.version' package.json)" >> "$GITHUB_OUTPUT"

- name: Parse version
id: version
uses: madhead/[email protected]
with:
version: "${{ steps.packageJsonVersion.outputs.version }}"

- name: Replace name in package.json (nightly)
if: ${{ github.event.inputs.nightly }}
run: |
tempfile=$(mktemp)
jq '.name = "biome-nightly"' package.json > $tempfile
mv $tempfile package.json
- name: Replace displayName in package.json (nightly)
if: ${{ github.event.inputs.nightly }}
run: |
tempfile=$(mktemp)
jq '.displayName = "Biome (nightly)"' package.json > $tempfile
mv $tempfile package.json
- name: Retrieve version from package.json
id: packageJsonVersion
run: echo "version=$(jq -r '.version' package.json)" >> "$GITHUB_OUTPUT"

- name: Parse version
id: version
uses: madhead/[email protected]
with:
version: "${{ steps.packageJsonVersion.outputs.version }}"
- name: Generate nightly identifier (nightly)
if: ${{ github.event.inputs.nightly }}
Expand Down

0 comments on commit 19c2417

Please sign in to comment.