Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,26 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
name: Test with Leaflet v1.x
runs-on: ubuntu-latest

steps:
- name: Checkout branch
uses: actions/checkout@v5

- name: Use Node.js 22.x
uses: actions/setup-node@v5
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: 22.x
version: 10

- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
- name: Use Node.js 22.x
uses: actions/setup-node@v6
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
node-version: 22.x
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install --prefer-offline --frozen-lockfile

- name: Run tests
run: npm run test
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
npm-publish:
name: npm-publish
if: github.repository_owner == 'jjimenezshaw' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
eslint.*
examples
package-lock.json
pnpm-lock.yaml
test
tsconfig.json
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.37.0
rev: v9.39.1
hooks:
- id: eslint
args: [--fix, --config, ./eslint.config.js]
Expand Down
Loading