Skip to content

redefine isCI switch #234

redefine isCI switch

redefine isCI switch #234

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_LINK: https://github.com/leonhma/obsidian-functionplot/actions/runs/${{ github.run_id }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install dependencies
run: |
npm install -g pnpm
pnpm install
- name: set development version
run: node .github/version-bump.js "$(git rev-parse --short HEAD)"
- name: build
run: pnpm run build:prod
- name: upload dist
uses: actions/[email protected]
with:
name: obsidian-functionplot
path: |
manifest.json
main.js
test:
runs-on: ubuntu-latest
name: test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install dependencies
run: |
npm install -g pnpm
pnpm install
- name: test
run: pnpm run test
lint:
runs-on: ubuntu-latest
name: lint
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: install dependencies
run: |
npm install -g pnpm
pnpm install
- name: lint
run: pnpm run lint