Skip to content

Commit

Permalink
feat: Altera tipo da action para rodar com Node 18 (#5)
Browse files Browse the repository at this point in the history
- altera o tipo da action para `composite`
- configura o ambiente em Node 18
-  cria o step `Stylelint evaluator` para rodar o script dist/index.js
  • Loading branch information
renatofreire authored Aug 25, 2023
1 parent bfcc22e commit 1f3e391
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,16 @@ inputs:
description: 'Pull Request number that dispatched the workflow'
required: true
runs:
using: "node16"
main: "dist/index.js"
using: "composite"
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Stylelint Evaluator
run: node ${{ github.action_path }}/dist/index.js
shell: bash
env:
INPUT_TOKEN: ${{ inputs.token }}
INPUT_PR_NUMBER: ${{ inputs.pr_number }}

0 comments on commit 1f3e391

Please sign in to comment.