Skip to content

Commit

Permalink
Merge pull request #2 from FaberVitale/chore/bump-pnpm-add-nvmrc
Browse files Browse the repository at this point in the history
chore: add nvmrc file, bump pnpm version and add CI pipeline
  • Loading branch information
FaberVitale authored Dec 17, 2023
2 parents 520d56b + 1de7ef1 commit fc1c130
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
env:
HUSKY: '0'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: '20.10.0'
cache: 'pnpm'
- name: log info
run: >
printf 'commit -> %s\nbranch -> %s\n' "$(git rev-parse --short HEAD)" "$(git branch --show-current)"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

jobs:
deploy:
if: github.repository == 'Roma-JS/roma-js-opening-slides' # prevents this action from running on forks
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest

permissions:
Expand All @@ -26,7 +28,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
node-version: '20.10.0'
cache: 'pnpm'

- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "romajs-intro",
"type": "module",
"private": true,
"packageManager": "pnpm@8.7.5",
"packageManager": "pnpm@8.12.1",
"scripts": {
"build": "slidev build",
"dev": "slidev --open",
Expand Down

0 comments on commit fc1c130

Please sign in to comment.