chore(deps-dev): bump husky from 9.1.5 to 9.1.7 #1086
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20, 22] | |
steps: | |
- name: Decide the ref to check out | |
uses: haya14busa/action-cond@v1 | |
id: condval | |
with: | |
cond: ${{ github.event_name == 'pull_request_target' }} | |
if_true: refs/pull/${{ github.event.pull_request.number }}/merge | |
if_false: ${{ github.ref }} | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ steps.condval.outputs.value }} | |
fetch-depth: 0 | |
# Make sure the release step uses its own credentials. | |
persist-credentials: false | |
- name: Resolve detached branch | |
run: | | |
git checkout -b detached-branch | |
git branch --track master origin/master | |
if: github.event_name == 'pull_request_target' | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Download Gradle | |
run: | | |
cd test/project/with-artifactory-plugin | |
./gradlew dependencies | |
- name: Build | |
run: | | |
npm ci | |
npm test | |
- name: Run semantic-release | |
if: matrix.node-version == 20 | |
run: | | |
npm run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_TO_PUSH }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |