From 1f3e3911d972fc3f3ffd94b9db49f161a29d6a51 Mon Sep 17 00:00:00 2001 From: Renato Freire Date: Fri, 25 Aug 2023 14:32:29 -0300 Subject: [PATCH] feat: Altera tipo da action para rodar com Node 18 (#5) - 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 --- action.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 07f79e5..8cc437f 100644 --- a/action.yml +++ b/action.yml @@ -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 }} \ No newline at end of file