fix(js): publish #168
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: YAML and Actionlint | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Get changed YAML files | |
| id: changed-yaml | |
| uses: tj-actions/changed-files@v45 | |
| with: | |
| files: | | |
| .github/**/*.yml | |
| .github/**/*.yaml | |
| - name: Get changed workflow files | |
| id: changed-workflows | |
| uses: tj-actions/changed-files@v45 | |
| with: | |
| files: | | |
| .github/workflows/**/*.yml | |
| .github/workflows/**/*.yaml | |
| - name: Run yamllint | |
| if: | | |
| !cancelled() && | |
| steps.changed-yaml.outputs.any_changed == 'true' | |
| uses: ibiqlik/action-yamllint@v3 | |
| with: | |
| file_or_dir: ${{ steps.changed-yaml.outputs.all_changed_files }} | |
| format: 'colored' | |
| # https://yamllint.readthedocs.io/en/stable/configuration.html | |
| config_data: | | |
| extends: default | |
| rules: | |
| document-start: disable | |
| - name: Run actionlint | |
| if: | | |
| !cancelled() && | |
| steps.changed-workflows.outputs.any_changed == 'true' | |
| uses: docker://rhysd/actionlint:latest | |
| with: | |
| args: -color ${{ steps.changed-workflows.outputs.all_changed_files }} |