Skip to content

docs: add mysqljs/mysql and MySQL2 instructions (#15) #30

docs: add mysqljs/mysql and MySQL2 instructions (#15)

docs: add mysqljs/mysql and MySQL2 instructions (#15) #30

Workflow file for this run

name: 'πŸš€ CD β€” Publish'
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release-please:
runs-on: ubuntu-latest
timeout-minutes: 15
name: Release Please
steps:
- name: 🀝 Release Please
uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: sql-escaper
changelog-path: 'CHANGELOG.md'
- name: βž• Actions - Checkout
uses: actions/checkout@v4
if: ${{ steps.release.outputs.releases_created }}
- name: βž• Actions - Setup Node.js
uses: actions/setup-node@v4
if: ${{ steps.release.outputs.releases_created }}
with:
check-latest: true
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: βž• Cache dependencies
uses: actions/cache@v4
if: ${{ steps.release.outputs.releases_created }}
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-
- name: πŸ“¦ Installing Dependencies
if: ${{ steps.release.outputs.releases_created }}
run: npm ci
- name: πŸš€ Building sql-escaper
if: ${{ steps.release.outputs.releases_created }}
run: npm run build
- name: πŸ“₯ Publishing Package
if: ${{ steps.release.outputs.releases_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --provenance