chore: update typeorm to version 0.3.20 #70
This file contains 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
name: Build Workflow | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
- 'examples/**' | |
env: | |
CI: true | |
jobs: | |
build_and_test: | |
# ignore commits with `[skip ci]` | |
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
name: Build and test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [10.x, 12.x, 14.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --frozen-lock-file | |
- name: Build packages and examples | |
run: yarn build | |
- name: Run tests | |
run: yarn test | |
- name: Upload coverage report | |
run: bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN | |
if: ${{ matrix.node-version == '12.x' }} | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
if: ${{ github.ref == 'refs/heads/main' }} | |
needs: build_and_test | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
# pulls all commits (needed for lerna to correctly version) | |
fetch-depth: "0" | |
# pulls all tags (needed for lerna to correctly version) | |
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-12.x-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --frozen-lock-file --check-files | |
- name: Build packages | |
run: yarn build --scope @fastify-resty/* | |
- name: Semantic version bump | |
run: | | |
git config --global user.email "demidovich.daniil@gmail.com" | |
git config --global user.name "DanilaFadeev" | |
yarn semantic-bump | |
- name: Publish | |
run: | | |
echo -e "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}\nregistry=https://registry.npmjs.org/\nalways-auth=true\nscope=@fastify-resty" > .npmrc | |
yarn release | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |