Skip to content

Commit

Permalink
[chore] Modify CI for right deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tormozz48 committed May 1, 2024
1 parent f45a8e5 commit 6470d8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ jobs:
run: npm ci
- name: Build
run: npm run build --if-present
- name: Configure AWS credentials
run: npm run serverless config credentials --provider aws --overwrite --key ${{secrets.AWS_ACCESS_KEY_ID}} --secret ${{secrets.AWS_SECRET_ACCESS_KEY}}
- name: Deploy
run: npm run deploy
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"lint": "npm run eslint && npm run depcheck && npm run type-coverage",
"db:migrate": "serverless dynamodb migrate",
"dev": "serverless offline",
"deploy": "serverless deploy",
"deploy": "serverless deploy --use-local-credentials",
"pretest": "npm run db:migrate",
"test": "jest --silent",
"test:debug": "jest --runInBand",
Expand Down

0 comments on commit 6470d8b

Please sign in to comment.