Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
runs:
using: composite
steps:
- uses: actions/setup-node@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node-version }}
cache: npm
Expand All @@ -29,15 +29,15 @@ runs:
scripts=$(cat package.json | jq -c '.scripts | keys')
echo "scripts=$scripts" >> $GITHUB_OUTPUT
shell: bash
- run: npm ci || npm install
- run: time (npm ci || npm install)
shell: bash
- id: build
if: ${{ contains(steps.scripts.outputs.scripts, 'build') && !contains(inputs.except, 'build') }}
run: npm run build
run: time npm run build
shell: bash
- id: lint
if: ${{ contains(steps.scripts.outputs.scripts, 'lint') && !contains(inputs.except, 'lint') }}
run: npm run lint
run: time npm run lint
shell: bash
- id: test
if: ${{ contains(steps.scripts.outputs.scripts, 'test') && !contains(inputs.except, 'test') }}
Expand Down
Loading