Skip to content

Commit

Permalink
refactor: ♻️ Migrated to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Nov 28, 2024
1 parent 8ee70f8 commit 55854f6
Show file tree
Hide file tree
Showing 10 changed files with 46,270 additions and 35,184 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
build/
26 changes: 15 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
name: 'main'

on:
push:
branches:
- main
pull_request:
branches: main

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: 'Check token'
run: |
curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/installation/repositories
- name: 'Show env vars'
run: |
echo "Repository: $GITHUB_REPOSITORY"
echo "Repository: $GITHUB_REF_NAME"
- name: 'Checkout sources'
uses: actions/checkout@v3
- name: 'Setup NodeJS'
uses: actions/setup-node@v3
uses: actions/checkout@v4

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

- name: 'Install dependencies'
run: npm install
run: yarn install

- name: 'Run Code Limit action'
uses: getcodelimit/codelimit-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
build/
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM node:20
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY src ./src
CMD [ "node", "/usr/src/app/src/action.js" ]
COPY dist ./dist
CMD [ "node", "dist/index.js" ]
80,275 changes: 45,656 additions & 34,619 deletions dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 55854f6

Please sign in to comment.