Skip to content

Commit

Permalink
feat: auto update env
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasuraj01 committed Sep 7, 2024
1 parent 212b4fb commit 069cb77
Show file tree
Hide file tree
Showing 6 changed files with 400 additions and 221 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,21 @@ jobs:
with:
node-version-file: "package.json"
cache: "pnpm"

- name: setup env

- name: update env
run: |
pnpm update:env
- name: update pnpm
uses: pnpm/action-setup@v3

- name: update node
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "pnpm"

- name: setup environment variables
run: |
echo "COMMIT_MESSAGE=chore: auto updated dependencies on $(date +'%d/%m/%Y')" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"typecheck:src:all": "nx run-many -t typecheck:src",
"typecheck:test": "nx affected -t typecheck:test",
"typecheck:test:all": "nx run-many -t typecheck:test",
"update:env": "nx run scripts:update-env",
"update:packages": "npx npm-check-updates -u --peer --deep --enginesNode --packageManager=pnpm --dep=dev,optional,peer,prod,packageManager --reject eslint"
},
"keywords": [],
Expand Down
Loading

0 comments on commit 069cb77

Please sign in to comment.