Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Jun 9, 2024
1 parent adca982 commit 31a6ef9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Setup

runs:
using: 'composite'
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci --ignore-scripts --no-audit
shell: bash
12 changes: 5 additions & 7 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI/CD

on: push
on:
push:
branches: ['master']
workflow_dispatch:

jobs:
format-build-test-and-e2e:
Expand All @@ -9,12 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci --ignore-scripts --no-audit
- uses: ./.github/actions/setup

- run: npm run format:check

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/deps-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dependencies check

on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:

jobs:
check_updates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup

- run: npm outdated
2 changes: 1 addition & 1 deletion packages/blog/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"jsx": "react-jsx",

/* Misc */
"types": ["@total-typescript/ts-reset"]
"types": ["node", "@total-typescript/ts-reset"]
},
"include": ["src"],
"exclude": ["src/client.ts"]
Expand Down

0 comments on commit 31a6ef9

Please sign in to comment.