Skip to content

Commit

Permalink
Merge pull request #40 from alvarosabu/chore/ci-improvements
Browse files Browse the repository at this point in the history
chore: ci improvements
  • Loading branch information
alvarosabu authored Aug 29, 2024
2 parents 77950db + f7db075 commit 927fabb
Show file tree
Hide file tree
Showing 6 changed files with 966 additions and 944 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/ci.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint PR

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run linters
on: [push]

env:
PNPM_CACHE_FOLDER: .pnpm-store
HUSKY: 0 # Bypass husky commit hook for CI

jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run Lint
run: pnpm run lint
39 changes: 39 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Any Commit
on:
pull_request:
push:
branches:
- '**'
tags:
- '!**'

env:
PNPM_CACHE_FOLDER: .pnpm-store
HUSKY: 0 # Bypass husky commit hook for CI

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout code
uses: actions/checkout@v2

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- run: pnpx pkg-pr-new publish --compact --pnpm
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "slidev-theme-penguin",
"type": "module",
"version": "2.2.1",
"packageManager": "[email protected]",
"description": "A Penguin theme for Slidev",
"author": "Alvaro Saburido <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -39,18 +40,18 @@
},
"dependencies": {
"@alvarosabu/ui": "3.0.0",
"@slidev/types": "^0.49.27",
"@slidev/types": "^0.49.29",
"prism-theme-vars": "^0.2.5",
"vite-svg-loader": "^5.1.0"
},
"devDependencies": {
"@alvarosabu/eslint-config": "^1.2.0",
"@iconify-json/la": "^1.1.9",
"@iconify-json/logos": "^1.1.44",
"@iconify-json/simple-icons": "^1.1.114",
"@iconify-json/simple-icons": "^1.1.115",
"@release-it/conventional-changelog": "^8.0.1",
"@slidev/cli": "0.49.27",
"eslint": "^9.9.0",
"@slidev/cli": "0.49.29",
"eslint": "^9.9.1",
"playwright-chromium": "^1.46.1",
"release-it": "^17.6.0",
"sass": "^1.77.8"
Expand Down
Loading

0 comments on commit 927fabb

Please sign in to comment.