diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6494525..73b2491 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,7 @@ jobs: # ENDPOINT: https://deploy-preview-${{github.event.number}}--ambianic-serverless.netlify.app/.netlify/functions - name: Wait for successful preview deployment + if: ${{ github.event_name == 'pull_request' }} uses: jakepartusch/wait-for-netlify-action@v1 id: get-netlify-url with: @@ -46,6 +47,7 @@ jobs: max_timeout: 60 - name: Run tests against deployed preview + if: ${{ github.event_name == 'pull_request' }} run: npm run test:postman env: STRIPE_TEST_KEY: ${{ secrets.STRIPE_TEST_KEY }} @@ -69,7 +71,7 @@ jobs: - name: Run the semantic-release run: npx semantic-release env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Code Coverage Report diff --git a/README.md b/README.md index 4f4b3a9..a1a5415 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The image below shows the architecture of these serverless functions in connection with the Ambianic [PWA](https://github.com/ambianic/ambianic-ui/). ![serverless-functions-architecture](./assets/serverless-architecture.png) -## Local Development / Usage +## Running Locally The serverless functions within this project are managed using [netlify-dev](https://www.netlify.com/products/dev/). Start the functions emulator from the `netlify` directory using `yarn netlify-dev` to listen for requests to any of created functions on port `5050`. diff --git a/package.json b/package.json index 3ad84dd..cd77fa8 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,9 @@ "ci": false, "branches": [ "main", + "master", "docs/swagger", - "development" + "documentation" ], "plugins": [ "@semantic-release/commit-analyzer",