Skip to content

Commit

Permalink
chore: update node version
Browse files Browse the repository at this point in the history
  • Loading branch information
falsepopsky committed Oct 24, 2023
1 parent 7ec1466 commit feba148
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 6 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: CD
on:
push:
branches:
- main

env:
PNPM_VERSION: 8.9.2

jobs:
lint:
name: ⬣ Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4.1.1

- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v3.8.1
with:
node-version-file: ".nvmrc"
cache: pnpm

- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm lint
test:
name: 🧪 Test
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4.1.1

- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v3.8.1
with:
node-version-file: ".nvmrc"
cache: pnpm

- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
build:
name: 🏗️ Build
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- name: Checkout repo
uses: actions/checkout@v4.1.1

- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v3.8.1
with:
node-version-file: ".nvmrc"
cache: pnpm

- name: Install dependencies
run: pnpm install
- name: Run build
run: pnpm build
3 changes: 0 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
workflow_run:
workflows: ["CI"]
workflows: ["CD"]
types:
- completed
branches:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.18.2
v20.9.0
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build.environment]
NODE_VERSION = "18"
NODE_VERSION = "20.9.0"
[build]
publish = "docs/.vitepress/dist"
command = "pnpm docs:build"
Expand Down

0 comments on commit feba148

Please sign in to comment.