Skip to content

Commit

Permalink
Merge pull request #2 from ruibaby/chore/fix-workflow
Browse files Browse the repository at this point in the history
chore: fix github workflow
  • Loading branch information
n0vad3v authored Jun 30, 2023
2 parents faacde7 + ff6c477 commit 3ef715b
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@ name: Build Plugin JAR File

on:
push:
branches: [ master ]
branches:
- master
paths:
- "**"
- "!**.md"
release:
types:
- created
pull_request:
branches:
- master
paths:
- "**"
- "!**.md"

jobs:
build:
Expand All @@ -20,30 +30,6 @@ jobs:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/console/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Frontend Dependencies
run: |
./gradlew pnpmInstall
- name: Build with Gradle
run: |
# Set the version with tag name when releasing
Expand Down

0 comments on commit 3ef715b

Please sign in to comment.