Skip to content

Commit

Permalink
chore: Migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Jul 21, 2024
1 parent e10951d commit ffc797a
Show file tree
Hide file tree
Showing 12 changed files with 3,014 additions and 3,744 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
16 changes: 10 additions & 6 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,27 @@ on:
push:
branches:
- main

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
with:
node-version: '18.x'

- run: npm ci
- run: npm run export && touch out/.nojekyll
run_install: true
- run: |
pnpm build
touch dist/.nojekyll
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: out
FOLDER: dist
CLEAN: true
CLEAN_EXCLUDE: '["v0.1", "v0.2", "v0.3"]' # Manually add endpoints to keep
36 changes: 4 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,8 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
node_modules
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.next/*
out/*

example/*.zarr
example/.ipynb_checkpoints/*
example/data/**
__pycache__

.venv
.ipynb_checkpoints
dist/
astronaut.zarr
__pycache__

/python/notebooks/*.zarr/
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

Loading

0 comments on commit ffc797a

Please sign in to comment.