build: Use prettier for yaml

Stop ignoring .yml files in prettier and fix existing issues.
This commit is contained in:
Ralph Hopman
2024-12-18 17:11:44 +01:00
committed by Adam Saghy
parent e3fbf8b81d
commit 0f6dac9089
5 changed files with 47 additions and 51 deletions
+2 -3
View File
@@ -1,7 +1,7 @@
name: DMP 2024 Design Project Template name: DMP 2024 Design Project Template
description: List a new design project for Dedicated Mentoring Program 2024 description: List a new design project for Dedicated Mentoring Program 2024
title: "[DMP 2024]: " title: '[DMP 2024]: '
labels: ["DMP 2024" , "Product Usability"] labels: ['DMP 2024', 'Product Usability']
body: body:
- type: textarea - type: textarea
id: ticket-description id: ticket-description
@@ -134,4 +134,3 @@ body:
description: Please tag relevant mentors for the ticket description: Please tag relevant mentors for the ticket
validations: validations:
required: true required: true
+5 -5
View File
@@ -4,9 +4,9 @@ name: build-run
on: on:
# Triggers the workflow on push or pull request events but only for the main branch # Triggers the workflow on push or pull request events but only for the main branch
push: push:
branches: [ master ] branches: [master]
pull_request: pull_request:
branches: [ master ] branches: [master]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
@@ -29,16 +29,16 @@ jobs:
# lts/gallium node v19.7.0 (npm v9.5.0) # lts/gallium node v19.7.0 (npm v9.5.0)
node-version: '19.7.0' node-version: '19.7.0'
- name: Angular CLI install - name: Angular CLI install
run : npm install -g --silent @angular/cli@14.2.12 run: npm install -g --silent @angular/cli@14.2.12
- name: Npm install - name: Npm install
run: npm install run: npm install
- name: Run eslint - name: Run eslint
run : npx ng lint run: npx ng lint
- name: Run build - name: Run build
run : npm run build:prod run: npm run build:prod
- name: Deploy to github pages - name: Deploy to github pages
if: ${{ github.event_name == 'push' }} if: ${{ github.event_name == 'push' }}
@@ -2,12 +2,10 @@ name: Publish Image in Docker Hub
on: on:
push: push:
branches: [ master ] branches: [master]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
DOCKER_ORGANIZATION: ${{secrets.DOCKER_ORGANIZATION}} DOCKER_ORGANIZATION: ${{secrets.DOCKER_ORGANIZATION}}
+1 -1
View File
@@ -4,7 +4,7 @@
name: Mark stale issues and pull requests name: Mark stale issues and pull requests
on: on:
schedule: schedule:
- cron: "0 0 * * *" - cron: '0 0 * * *'
permissions: permissions:
contents: read contents: read
-1
View File
@@ -5,4 +5,3 @@
*.js *.js
*.json *.json
*.ts *.ts
*.yml