Skip to content

Commit

Permalink
Merge pull request #4 from tnmyk/CI-fix
Browse files Browse the repository at this point in the history
fix: PNPM frozen lockfile
  • Loading branch information
tnmyk authored Apr 2, 2023
2 parents f7d4101 + 945aca9 commit c57f2a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Scheduled Email
on:
workflow_dispatch: {}
schedule:
# Runs at 04:00 UTC every day.
# Eg: Runs at 04:00 UTC every day.
- cron: '0 4 * * *'

jobs:
Expand All @@ -15,17 +15,19 @@ jobs:

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 7

- name: Node LTS versions
uses: actions/setup-node@v3

with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install Node.js dependencies
run: |
npm i -g pnpm
pnpm i
pnpm i --no-frozen-lockfile
- env:
SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "src/index.ts",
"scripts": {
"start": "ts-node src/index.ts"
"start": "TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true ts-node src/index.ts"
},
"keywords": [],
"author": "tnmyk",
Expand Down

0 comments on commit c57f2a4

Please sign in to comment.