build(deps-dev): bump @types/node from 20.6.0 to 20.6.3 #1308
Workflow file for this run
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
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: CI | |
on: | |
push: | |
branches: [develop, master, next, beta, alpha] | |
pull_request: | |
branches: [develop, master, next, beta, alpha] | |
permissions: | |
packages: write | |
contents: write | |
issues: write | |
pull-requests: write | |
env: | |
PRIMARY_NODE_VERSION: 18 | |
jobs: | |
install: | |
name: Checkout and Install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/actions/install | |
with: | |
node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
lint: | |
name: Lint | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/actions/install | |
with: | |
node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
- name: Build | |
uses: ./.github/actions/build | |
- name: Lint | |
run: | | |
npm run lint | |
build: | |
name: Build | |
needs: [install] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/actions/install | |
with: | |
node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
- name: Build | |
uses: ./.github/actions/build | |
tests: | |
name: Test | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/actions/install | |
with: | |
node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
- name: Build | |
uses: ./.github/actions/build | |
- name: Run tests | |
run: | | |
npm run test | |
release: | |
name: Release | |
needs: [lint, tests] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/actions/install | |
with: | |
node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
- name: Build | |
uses: ./.github/actions/build | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release | |
coverage: | |
name: Coverage | |
needs: [release] | |
runs-on: ubuntu-latest | |
if: ${{ github.ref_name == 'master' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/actions/install | |
with: | |
node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
- name: Build | |
uses: ./.github/actions/build | |
- name: Coverage | |
run: | | |
npm run test:coverage | |
- name: Upload report | |
uses: codecov/codecov-action@v3.1.4 | |
with: | |
token: ${{ secrets.codecov }} | |
directory: ./coverage/ | |
docs: | |
name: Docs | |
needs: [release] | |
runs-on: ubuntu-latest | |
if: ${{ github.ref_name == 'master' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/actions/install | |
with: | |
node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
- name: Build package | |
run: npm run docs:build | |
- name: CNAME | |
run: | | |
cd ./docs/.vitepress/dist/ | |
touch CNAME | |
echo "typeorm-extension.tada5hi.net" > CNAME | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/.vitepress/dist |