Merge pull request #190 from Woosmap/dev/update-distance-api-group #125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # use semantic-release to create a release | |
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| if: "!contains(github.event.head_commit.message, 'skip ci')" | |
| runs-on: ubuntu-22.04 | |
| env: | |
| WOOSMAP_PUBLIC_API_KEY: "${{ secrets.WOOSMAP_PUBLIC_API_KEY }}" | |
| WOOSMAP_PRIVATE_API_KEY: "${{ secrets.WOOSMAP_PRIVATE_API_KEY }}" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.WOOSMAP_GH_ACCESS_TOKEN }} | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.15.9 | |
| - name: Install dependencies | |
| run: pnpm i --frozen-lockfile | |
| - run: pnpm run build | |
| - run: pnpm test | |
| - name: Semantic Release | |
| uses: cycjimmy/semantic-release-action@v4 | |
| with: | |
| extra_plugins: | | |
| "@semantic-release/commit-analyzer" | |
| "@semantic-release/release-notes-generator" | |
| "@semantic-release/git" | |
| "@semantic-release/github" | |
| "@semantic-release/exec" | |
| env: | |
| GH_TOKEN: ${{ secrets.WOOSMAP_GH_ACCESS_TOKEN }} | |
| NPM_TOKEN: skip # required in verify conditions | |
| POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }} |