chore: upgrade mysql2 to v3 (#335) #123
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 file is auto-generated, do not edit by hand !!! | |
# To make changes, edit .github/workflows-src/website.ts and then run: | |
# | |
# github-actions-workflow-builder --directory ".github/workflows-src" | |
name: Website | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
publish_website: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
registry-url: https://registry.npmjs.org | |
- name: Get yarn cache directory path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
id: step_3 | |
- name: Enable Cache | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
${{ steps.step_3.outputs.dir }} | |
node_modules | |
packages/*/node_modules | |
key: ${{ runner.os }}-20.x-${{ hashFiles('yarn.lock') }}-2 | |
- run: yarn install --prefer-offline | |
- name: Enable Cache | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
packages/bigquery/lib | |
packages/cache/lib | |
packages/connection-pool/lib | |
packages/dataloader/lib | |
packages/escape-identifier/lib | |
packages/expo/lib | |
packages/lock/lib | |
packages/migrations-base/lib | |
packages/mock-db/lib | |
packages/mock-db-typed/lib | |
packages/mysql/lib | |
packages/mysql-config/lib | |
packages/mysql-schema-cli/lib | |
packages/mysql-schema-introspect/lib | |
packages/mysql-schema-print-types/lib | |
packages/mysql-test/lib | |
packages/mysql-typed/lib | |
packages/pg/lib | |
packages/pg-bulk/lib | |
packages/pg-cluster/lib | |
packages/pg-config/lib | |
packages/pg-connection-string/lib | |
packages/pg-create/lib | |
packages/pg-data-type-id/lib | |
packages/pg-errors/lib | |
packages/pg-migrations/lib | |
packages/pg-schema-cli/lib | |
packages/pg-schema-introspect/lib | |
packages/pg-schema-print-types/lib | |
packages/pg-test/lib | |
packages/pg-typed/lib | |
packages/push-to-async-iterable/lib | |
packages/queue/lib | |
packages/shared/lib | |
packages/shared-print-types/lib | |
packages/split-sql-query/lib | |
packages/sql/lib | |
packages/sqlite/lib | |
packages/sqlite-sync/lib | |
packages/validate-unicode/lib | |
packages/websql/lib | |
packages/websql-core/lib | |
packages/with-container/lib | |
packages/bigquery/.last_build | |
packages/cache/.last_build | |
packages/connection-pool/.last_build | |
packages/dataloader/.last_build | |
packages/escape-identifier/.last_build | |
packages/expo/.last_build | |
packages/lock/.last_build | |
packages/migrations-base/.last_build | |
packages/mock-db/.last_build | |
packages/mock-db-typed/.last_build | |
packages/mysql/.last_build | |
packages/mysql-config/.last_build | |
packages/mysql-schema-cli/.last_build | |
packages/mysql-schema-introspect/.last_build | |
packages/mysql-schema-print-types/.last_build | |
packages/mysql-test/.last_build | |
packages/mysql-typed/.last_build | |
packages/pg/.last_build | |
packages/pg-bulk/.last_build | |
packages/pg-cluster/.last_build | |
packages/pg-config/.last_build | |
packages/pg-connection-string/.last_build | |
packages/pg-create/.last_build | |
packages/pg-data-type-id/.last_build | |
packages/pg-errors/.last_build | |
packages/pg-migrations/.last_build | |
packages/pg-schema-cli/.last_build | |
packages/pg-schema-introspect/.last_build | |
packages/pg-schema-print-types/.last_build | |
packages/pg-test/.last_build | |
packages/pg-typed/.last_build | |
packages/push-to-async-iterable/.last_build | |
packages/queue/.last_build | |
packages/shared/.last_build | |
packages/shared-print-types/.last_build | |
packages/split-sql-query/.last_build | |
packages/sql/.last_build | |
packages/sqlite/.last_build | |
packages/sqlite-sync/.last_build | |
packages/validate-unicode/.last_build | |
packages/websql/.last_build | |
packages/websql-core/.last_build | |
packages/with-container/.last_build | |
key: v2-build-output-${{ hashFiles('yarn.lock', 'packages/bigquery/src', | |
'packages/cache/src', 'packages/connection-pool/src', | |
'packages/dataloader/src', 'packages/escape-identifier/src', | |
'packages/expo/src', 'packages/lock/src', | |
'packages/migrations-base/src', 'packages/mock-db/src', | |
'packages/mock-db-typed/src', 'packages/mysql/src', | |
'packages/mysql-config/src', 'packages/mysql-schema-cli/src', | |
'packages/mysql-schema-introspect/src', | |
'packages/mysql-schema-print-types/src', 'packages/mysql-test/src', | |
'packages/mysql-typed/src', 'packages/pg/src', | |
'packages/pg-bulk/src', 'packages/pg-cluster/src', | |
'packages/pg-config/src', 'packages/pg-connection-string/src', | |
'packages/pg-create/src', 'packages/pg-data-type-id/src', | |
'packages/pg-errors/src', 'packages/pg-migrations/src', | |
'packages/pg-schema-cli/src', 'packages/pg-schema-introspect/src', | |
'packages/pg-schema-print-types/src', 'packages/pg-test/src', | |
'packages/pg-typed/src', 'packages/push-to-async-iterable/src', | |
'packages/queue/src', 'packages/shared/src', | |
'packages/shared-print-types/src', 'packages/split-sql-query/src', | |
'packages/sql/src', 'packages/sqlite/src', | |
'packages/sqlite-sync/src', 'packages/validate-unicode/src', | |
'packages/websql/src', 'packages/websql-core/src', | |
'packages/with-container/src') }} | |
restore-keys: v2-build-output- | |
- run: yarn build | |
- name: Enable NextJS Cache | |
uses: actions/cache@v4 | |
with: | |
path: packages/website/.next/cache | |
key: next-${{ hashFiles('yarn.lock') }} | |
restore-keys: next- | |
- run: yarn workspace @databases/website build | |
- if: ${{ github.event_name == 'push' }} | |
run: netlify deploy --cwd . --filter @databases/website --prod | |
--dir=packages/website/out | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
- if: ${{ github.event_name != 'push' }} | |
run: netlify deploy --cwd . --filter @databases/website | |
--dir=packages/website/out | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} |