Skip to content

Commit

Permalink
chore: simplify github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Dec 7, 2024
1 parent f19eb2c commit b52eda1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b52eda1

Please sign in to comment.