Skip to content

Commit d8f73e0

Browse files
Test npm audit fix workflow (#161)
1 parent f805504 commit d8f73e0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/autorun-npm-audit-fix.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: autorun-npm-audit-fix
22
run-name: Automatically run npm audit fix
33
on:
44
schedule:
5-
- cron: '45 05 1 * *'
6-
- cron: '30 23 18 AUG *'
5+
- cron: '45 08 1 * *' # Run at 1:45 AM PDT on the 1st of every month
6+
- cron: '30 18 19 AUG *' # TEST Run at 11:30 AM PDT on August 19
77
jobs:
88
autorun-npm-audit-fix:
99
runs-on: ubuntu-latest
@@ -20,10 +20,6 @@ jobs:
2020
uses: actions/setup-node@v4
2121
with:
2222
node-version: '18'
23-
- name: Run npm audit fix
24-
run: |
25-
echo "Running npm audit fix"
26-
npm audit fix
2723
- name: Get whether autorun-npm-audit-fix branch exists
2824
run: |
2925
echo "Getting whether autorun-npm-audit-fix branch exists"
@@ -40,13 +36,17 @@ jobs:
4036
run: |
4137
echo "Deleting remote autorun-npm-audit-fix branch"
4238
git push origin --delete autorun-npm-audit-fix
39+
- name: Run npm audit fix
40+
run: |
41+
echo "Running npm audit fix (breaking changes will need to be addressed manually)"
42+
npm audit fix || true
4343
- name: Add any changes
4444
run: |
4545
echo "Determining if there are any changes"
4646
git config user.name github-actions
4747
git config user.email github-actions@github.com
4848
git checkout -b autorun-npm-audit-fix
49-
git add ../.
49+
git add .
5050
- name: Run git status
5151
run: |
5252
{

0 commit comments

Comments
 (0)