Skip to content

feat(Swagger): add info about Header config #26

feat(Swagger): add info about Header config

feat(Swagger): add info about Header config #26

name: allbridge-core-rest-api
on: [push]
jobs:
allbridge-core-rest-api:
runs-on: ubuntu-latest
defaults:
run:
working-directory: rest-api
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
uses: pnpm/[email protected]
id: pnpm-install
with:
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Get Docker version
run: |
version=$(node get-docker-version.mjs)
echo "VERSION=$version" >> $GITHUB_ENV
- name: Build
run: pnpm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ env.VERSION }}
run: pnpm run semantic-release