Skip to content

57 fix missing templates #34

57 fix missing templates

57 fix missing templates #34

Workflow file for this run

name: NodeJS CI with NPM (PR)
on:
pull_request:
types: [opened, synchronize, ready_for_review, review_requested, labeled]
concurrency: pr-${{ github.event.pull_request.id }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm clean-install
- run: npm run lint
- run: npm test
check-labels:
runs-on: ubuntu-latest
if: github.event.pull_request.mergeable == true
steps:
- name: Warn about missing labels
if: ${{ !contains(github.event.pull_request.labels.*.name, 'release') && !contains(github.event.pull_request.labels.*.name, 'documentation') }}
uses: thollander/actions-comment-pull-request@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: "This pull request hasn't been labeled as `release` nor `documentation`. Please ensure this is intentional before merging."
comment_tag: label-warn