Skip to content

Commit

Permalink
migrate to pnpm, typescript, vite
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanahiro committed Dec 29, 2024
1 parent d4cf41c commit ef9ede0
Show file tree
Hide file tree
Showing 7 changed files with 7,455 additions and 10,182 deletions.
66 changes: 29 additions & 37 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,37 @@ name: github pages
on:
push:
branches:
- master
- master
paths:
- 'src/**'
- 'example/**'
- 'src/**'
- 'example/**'

jobs:
build-deploy:
# ubuntu OS を仮想マシン上に用意する
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

# Node.js環境のセットアップを行う
- name: setup node
uses: actions/setup-node@v1
with:
node-version: '12.x'

# npm install の際にキャッシュを使うよう設定
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# package.jsonに基づき依存パッケージをインストールする
- name: install
run: npm install --frozen-lockfile

- name: build
run: npm run build

- name: add nojekyll
run: touch ./example/.nojekyll

- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example
- uses: actions/checkout@v2

# Node.js環境のセットアップを行う
- name: setup node
uses: actions/setup-node@v1
with:
node-version: '22.x'

- name: install pnpm
run: npm install -g pnpm

- name: install
run: pnpm install

- name: build
run: pnpm build

- name: add nojekyll
run: touch ./dist/.nojekyll

- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
Loading

0 comments on commit ef9ede0

Please sign in to comment.