Skip to content

Commit d63bf45

Browse files
Update pre-commit hook workflow to make it pass
1 parent 0ca95fb commit d63bf45

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/pre-commit-hook-run.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ jobs:
1212
pr-title:
1313
name: Pre commit hook check
1414
runs-on: ubuntu-latest
15-
container: rishabhpoddar/supertokens_website_sdk_testing_node_16
1615
steps:
17-
- uses: actions/checkout@v2
18-
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
19-
- run: npm i --force || true
20-
# the below command is there cause otherwise running npm run check-circular-dependencies gives an error like:
21-
# Your cache folder contains root-owned files, due to a bug in
22-
# npm ERR! previous versions of npm which has since been addressed.
16+
- uses: actions/checkout@v4
17+
- run: |
18+
git init
19+
git add --all
20+
git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
21+
- run: npm ci || true
2322
- run: chown -R 1001:121 "/github/home/.npm"
24-
- run: npm i --force
25-
- run: cd test/with-typescript && npm i --force
23+
- run: npm ci
24+
- run: cd test/with-typescript && npm ci
2625
- run: ./hooks/pre-commit.sh

0 commit comments

Comments
 (0)