diff --git a/github-action/action.yml b/github-action/action.yml index b1916ba..15c2543 100644 --- a/github-action/action.yml +++ b/github-action/action.yml @@ -13,12 +13,17 @@ inputs: runs: using: 'composite' steps: - - run: | - cd ${{ github.action_path }} + - name: Build action + run: | npm ci npm run build - node dist/index.js shell: bash + working-directory: ${{ github.action_path }} + + - name: Run compiler + run: node ${{ github.action_path }}/dist/index.js + shell: bash + working-directory: ${{ github.workspace }} env: INPUT_SOURCE-ROOT: ${{ inputs.source-root }} INPUT_OUTPUT-FILE: ${{ inputs.output-file }}