Skip to content

Commit

Permalink
feat: Action
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklem committed May 21, 2024
1 parent 7f7b058 commit 5457330
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 21 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Read Markdown Files

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Build the script
run: |
npm install
npm run build
- name: Run the script
run: node dist/main.js
20 changes: 0 additions & 20 deletions .github/workflows/test.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
.idea
dist
node_modules
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 'Codacy pattern documentation generator'
description: 'A GitHub Action to generate Codacy pattern documentation using GPT'
author: 'Nicola Klemenc'
inputs:
docs_glob:
description: 'Glob pattern to search for documentation files'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "rm -rf dist && npx tsc && node dist/main.js"
"build": "rm -rf dist && npx tsc && node dist/main.js"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 5457330

Please sign in to comment.