forked from ayusshrathore/leetcode
-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (31 loc) · 1021 Bytes
/
Copy pathnodejs.yml
File metadata and controls
42 lines (31 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Run Node.js Script and Commit Changes
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install Dependencies
run: npm install
- name: Compile TypeScript
run: npx tsc ./main.ts
- name: Run Script
run: node ./main.js
- name: Configure Git Identity
run: |
git config --global user.email "aaravmishra619@gmail.com"
git config --global user.name "aaaravv"
- name: Stage Changes
run: git add .
- name: Commit Changes
run: git commit -m "chore(docs):Sync contributors"
- name: Push Changes
run: git push origin main