Skip to content

Commit

Permalink
Try out workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andy0130tw committed Sep 15, 2024
1 parent b8d4db1 commit 28a3b07
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
70 changes: 70 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: CI

# https://turbo.build/repo/docs/guides/ci-vendors/github-actions

on:
push:
branches: ['@qbane/dev']

workflow_dispatch:

jobs:
build:
name: Build
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}
# TURBO_REMOTE_ONLY: true

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'lezer-playground/dist'

deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}

permissions:
contents: read
pages: write
id-token: write

runs-on: ubuntu-latest
needs: build

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
EditorRemoveEffect,
EditorHasSelectionField,
} from "./editor-in-chief";
import { compact } from "lodash";
import { compact } from "lodash-es";
import { EditorInChiefSelection, CellStateEffect } from "./wrap-cell-types";
import { EditorInChiefCommand, EditorInChiefKeyBinding } from "./wrap/keymap";
import {
Expand Down

0 comments on commit 28a3b07

Please sign in to comment.