Skip to content

Commit

Permalink
build: Update main file path in action.yml and add workflow for code …
Browse files Browse the repository at this point in the history
…compilation
  • Loading branch information
salahhusa9 committed Aug 2, 2024
1 parent b17cc87 commit 195b0cc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/compile_code_and_modules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: compile code and modules


on:
push:
paths-ignore:
- 'dist/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: commit changes
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
git commit -m "build: ${{ github.sha }}"
git push
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ inputs:

runs:
using: 'node20'
main: 'index.js'
main: 'dist/index.js'

branding:
icon: "upload-cloud"
Expand Down

0 comments on commit 195b0cc

Please sign in to comment.