chore(deps-dev): bump semantic-release from 22.0.5 to 22.0.8 #938
Workflow file for this run
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: [18] | |
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@v3 | |
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@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "11" | |
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 == 18 | |
run: | | |
npm run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_TO_PUSH }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |