Skip to content

Commit

Permalink
Update upgrade-dependencies workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fardjad committed Apr 22, 2024
1 parent b3e8c0f commit f6ff81f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 21 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/automatic-npm-check-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: automatic-npm-check-updates

on:
workflow_dispatch: {}
schedule:
- cron: "0 0 * * *"

jobs:
automatic-npm-check-updates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: "lts/*"
check-latest: true
- name: Cache node modules
uses: actions/cache@main
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: fardjad/my-actions/automatic-npm-check-updates@main
with:
github-token: ${{ secrets.GH_PAT }}
post-update-commands: |
npm install
npm audit fix --quiet --no-progress --no-fund || true
npm run fix
npm version patch --no-git-tag-version
21 changes: 0 additions & 21 deletions .github/workflows/upgrade-dependencies.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .ncurc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dep": ["prod"]
}

0 comments on commit f6ff81f

Please sign in to comment.