diff --git a/.github/workflows/pre-commit-hook-run.yml b/.github/workflows/pre-commit-hook-run.yml index 01f765e45..bf7b52366 100644 --- a/.github/workflows/pre-commit-hook-run.yml +++ b/.github/workflows/pre-commit-hook-run.yml @@ -12,13 +12,12 @@ jobs: pr-title: name: Pre commit hook check runs-on: ubuntu-latest - container: rishabhpoddar/supertokens_website_sdk_testing steps: - uses: actions/checkout@v2 - name: Set up node uses: actions/setup-node@v1 with: - node-version: "16" - - run: git init && git add --all && git -c user.name='test' -c user.email='test@example.com' commit -m 'init for pr action' + node-version: 16 + - run: rm -rf .git && git init && git add --all && git -c user.name='test' -c user.email='test@example.com' commit -m 'init for pr action' - run: npm i --force && cd test/with-typescript && npm i --force - run: ./hooks/pre-commit.sh diff --git a/.github/workflows/test-edge-function.yml b/.github/workflows/test-edge-function.yml index f07244480..a6824b9dc 100644 --- a/.github/workflows/test-edge-function.yml +++ b/.github/workflows/test-edge-function.yml @@ -12,7 +12,7 @@ jobs: working-directory: examples/next/with-emailpassword steps: - uses: actions/checkout@v2 - - run: echo $GITHUB_REF_NAME + - run: echo $GITHUB_SHA - run: npm install git+https://github.com:supertokens/supertokens-node.git#$GITHUB_SHA - run: npm install - run: npm install mocha@6.1.4 jsdom-global@3.0.2 puppeteer@^11.0.0 isomorphic-fetch@^3.0.0 diff --git a/.github/workflows/test-examples.yml b/.github/workflows/test-examples.yml index c6b3141ba..468b6bac5 100644 --- a/.github/workflows/test-examples.yml +++ b/.github/workflows/test-examples.yml @@ -34,7 +34,7 @@ jobs: aws-region: ${{ secrets.AWS_REGION }} role-duration-seconds: 1200 role-session-name: Github-action - - run: echo $GITHUB_REF_NAME + - run: echo $GITHUB_SHA - run: npm install git+https://github.com:supertokens/supertokens-node.git#$GITHUB_SHA - run: npm install - run: npm install mocha@6.1.4 jsdom-global@3.0.2 puppeteer@^11.0.0 isomorphic-fetch@^3.0.0 diff --git a/examples/aws/with-emailpassword/test/helpers/lambda-layer.sh b/examples/aws/with-emailpassword/test/helpers/lambda-layer.sh index 661c4d441..807ea29f8 100755 --- a/examples/aws/with-emailpassword/test/helpers/lambda-layer.sh +++ b/examples/aws/with-emailpassword/test/helpers/lambda-layer.sh @@ -1,7 +1,7 @@ mkdir lambda && cd lambda npm init -y npm i -s @middy/core @middy/http-cors -npm i --save git+ssh://git@github.com:supertokens/supertokens-node.git#$GITHUB_REF_NAME +npm i --save git+ssh://git@github.com:supertokens/supertokens-node.git#$GITHUB_SHA mkdir nodejs cp -r node_modules nodejs cp package.json nodejs