From b52eda1e05900e1e763c2d068e97ebfa65c80f5b Mon Sep 17 00:00:00 2001 From: Alexander Heimbuch Date: Sat, 7 Dec 2024 17:20:43 +0100 Subject: [PATCH] chore: simplify github actions --- .github/workflows/push.yml | 12 ------------ .github/workflows/tag.yml | 14 +------------- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index abd27cc..be57919 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -9,18 +9,6 @@ jobs: uses: jetpack-io/devbox-install-action@v0.11.0 with: enable-cache: true - - name: npm env - id: npm - shell: bash - run: | - echo "npm_hash_key=${{ runner.os }}-npm-store-${{ hashFiles('**/package-lock.json') }}" >> "$GITHUB_OUTPUT" - echo "npm_restore_key=${{ runner.os }}-npm-store-" >> "$GITHUB_OUTPUT" - - uses: actions/cache@v4 - name: setup npm cache - with: - path: '**/node_modules' - key: ${{ steps.npm.outputs.npm_hash_key }} - restore-keys: ${{ steps.npm.outputs.npm_restore_key }} - name: install run: devbox run npm ci - name: build diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 7450129..547bc2d 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -13,23 +13,11 @@ jobs: uses: jetpack-io/devbox-install-action@v0.11.0 with: enable-cache: true - - name: npm env - id: npm - shell: bash - run: | - echo "npm_hash_key=${{ runner.os }}-npm-store-${{ hashFiles('**/package-lock.json') }}" >> "$GITHUB_OUTPUT" - echo "npm_restore_key=${{ runner.os }}-npm-store-" >> "$GITHUB_OUTPUT" - - uses: actions/cache@v4 - name: setup npm cache - with: - path: '**/node_modules' - key: ${{ steps.npm.outputs.npm_hash_key }} - restore-keys: ${{ steps.npm.outputs.npm_restore_key }} - name: install run: devbox run npm ci - name: build run: | - devbox run npm build + devbox run npm run build devbox run npm run publish:prepare devbox run npm run publish:workspace - name: WordPress Plugin Deploy