chore: update to github workflow (WEB-9) #9
This file contains 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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
contrib-readme-job: | |
if: github.event_name == 'push' | |
runs-on: ubuntu-latest | |
name: A job to automate contrib in readme | |
steps: | |
- name: Contribute List | |
uses: akhilmhdh/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- 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 | |
typescript-setup-job: | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
name: Setup TypeScript on PR | |
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 |