Skip to content

chore: adjustment to yaml file to ensure contributions only run on pu… #14

chore: adjustment to yaml file to ensure contributions only run on pu…

chore: adjustment to yaml file to ensure contributions only run on pu… #14

Workflow file for this run

---
jobs:
contrib-readme-job:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: A job to automate contrib in readme
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
name: Contribute List
uses: akhilmhdh/[email protected]
eslint-run-push:
if: github.event_name == 'push'
name: Run ESLint
runs-on: ubuntu-latest
steps:
- name: Run ESLint
run: npm install
npx eslint .
prettier-format-check:
if: github.event_name == 'push'
name: Check code formatting with Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install dependencies
run: npm install
- name: Run Prettier Check
run: npx prettier --check .
typescript-run-push:
if: github.event_name == 'push'
name: Setup TypeScript on Main Push
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install TypeScript
run: npm install -g typescript
- name: Check TypeScript Version
run: tsc --version
"on":
pull_request: null
push:
branches:
- main