Skip to content

feat!: recode in typescript #2

feat!: recode in typescript

feat!: recode in typescript #2

Workflow file for this run

name: Build
on:
push:
branches:
- main
workflow_call:
pull_request:
types:
- opened
- synchronize
- closed
jobs:
build:
name: Build with Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm i
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build
- name: Test
run: pnpm test
- name: Publish
if: github.repository == 'sapics/ip-location-api'
run: pnpm -r publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}