Skip to content

Commit 195b0cc

Browse files
committed
build: Update main file path in action.yml and add workflow for code compilation
1 parent b17cc87 commit 195b0cc

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: compile code and modules
2+
3+
4+
on:
5+
push:
6+
paths-ignore:
7+
- 'dist/**'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Install dependencies
18+
run: npm install
19+
20+
- name: Build
21+
run: npm run build
22+
23+
- name: commit changes
24+
run: |
25+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
26+
git config --global user.name "github-actions[bot]"
27+
git add .
28+
git commit -m "build: ${{ github.sha }}"
29+
git push

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ inputs:
5454

5555
runs:
5656
using: 'node20'
57-
main: 'index.js'
57+
main: 'dist/index.js'
5858

5959
branding:
6060
icon: "upload-cloud"

0 commit comments

Comments
 (0)