Skip to content

Commit

Permalink
fix: use action
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jul 24, 2023
1 parent 78d962f commit 5decde2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ jobs:
with:
node-version: 19.7

- name: Setup Git
run: |
git config --local user.name cfl-bot
git config --local user.email [email protected]
# TODO: cache node packages
- name: Install Node Packages
run: npm install --only=dev
Expand All @@ -60,12 +55,19 @@ jobs:
run: npm run build

- name: Push Build Files
run: |
git add lib/*
if ! git diff --staged --quiet; then
git commit -m "push build files [skip ci]"
git push
fi
uses: EndBug/add-and-commit@v9
with:
add: 'lib/*'
push: true
author_name: cfl-bot
author_email: [email protected]
message: 'push build files [skip ci]'
# run: |
# git add lib/*
# if ! git diff --staged --quiet; then
# git commit -m "push build files [skip ci]"
# git push
# fi

release:
needs: [build]
Expand Down
4 changes: 4 additions & 0 deletions src/helpers/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,7 @@ export function camelCaseToSnakeCase(obj: Record<string, any>): void {
obj[snakeKey] = value;
});
}

export function hello(name: string): string {
return `Hello, ${name}`;
}

0 comments on commit 5decde2

Please sign in to comment.