Skip to content

chore(deps-dev): bump semantic-release from 23.0.5 to 23.0.7 #998

chore(deps-dev): bump semantic-release from 23.0.5 to 23.0.7

chore(deps-dev): bump semantic-release from 23.0.5 to 23.0.7 #998

Workflow file for this run

name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 21]
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@v3
with:
java-version: "17"
distribution: "temurin"
cache: "gradle"
- 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 }}