Skip to content

Commit

Permalink
fix(prettier): format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
joseacabaneros committed Oct 21, 2024
1 parent ab726d4 commit de62d97
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: Getting Cache
description: 'Composite action to share cache fetching between workflows'
description: Composite action to share cache fetching between workflows

inputs:
PREFIX_CACHE_KEY:
description: 'Supported string values. Used as prefix to generate a cache key'
description: Supported string values. Used as prefix to generate a cache key
required: false
NODE_MODULES:
description: 'Supported boolean values. Used to know if should manage the NODE MODULES cache'
description: Supported boolean values. Used to know if should manage the NODE MODULES cache
required: false
NPM:
description: 'Supported boolean values. Used to know if should manage the NPM cache'
description: Supported boolean values. Used to know if should manage the NPM cache
required: false

outputs:
cache_node_modules:
description: 'Used to know if exist a NODE_MODULES cache'
description: Used to know if exist a NODE_MODULES cache
value: ${{ steps.cache_node_modules.outputs.cache-hit }}

runs:
using: composite

steps:
- name: 'Set unify package version'
- name: Set unify package version
id: package
shell: sh
run: npm version -no-git-tag-version 0.0.0

- name: 'Get NPM cache directory path'
- name: Get NPM cache directory path
id: cache_path
shell: sh
run: echo dir=$(npm config get cache) >> $GITHUB_OUTPUT

- name: 'Get cache NODE MODULES dependencies'
- name: Get cache NODE MODULES dependencies
id: cache_node_modules
if: inputs.NODE_MODULES == 'true'
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ inputs.PREFIX_CACHE_KEY }}-node_modules-${{ hashFiles('**/package-lock.json') }}

- name: 'Get cache NPM dependencies'
- name: Get cache NPM dependencies
id: cache_npm
if: inputs.NPM == 'true' && steps.cache_node_modules.outputs.cache-hit != 'true'
uses: actions/cache@v4
Expand All @@ -52,6 +52,6 @@ runs:
${{ inputs.PREFIX_CACHE_KEY }}-npm-
${{ inputs.PREFIX_CACHE_KEY }}-
- name: 'Undo package version changes'
- name: Undo package version changes
shell: sh
run: git checkout -- .
6 changes: 3 additions & 3 deletions .github/actions/increment-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Increment Version

outputs:
version:
description: "New version"
description: New version
value: ${{ steps.project.outputs.version }}
previous:
description: "Old version"
description: Old version
value: ${{ steps.project.outputs.previous }}

runs:
using: composite

steps:
- name: 'Increment version'
- name: Increment version
id: project
shell: sh
run: ${GITHUB_ACTION_PATH}/increment-version.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ This is a script set that you can add to your repository:

Configure the initial preset with the same parameters as expose [@antfu/eslint-config](https://github.com/antfu/eslint-config/blob/main/README.md#customization)

Example:
Example:

```js
import { empathyco } from '@empathyco/eslint-config';
Expand Down

0 comments on commit de62d97

Please sign in to comment.