Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltssaumure committed Jul 3, 2024
1 parent 460806e commit e8ba3d4
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint

on:
push:
branches-ignore:
- deploy
pull_request:

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Checkout theme
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- name: Install dependencies
run: pnpm install

- name: Run linters
run: pnpm run lint
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and release

on:
push:
tags:
- v*

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout theme
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- name: Install dependencies
run: pnpm install

- name: Build scripts
run: pnpm run build:self

- name: Build zipped files and css
run: pnpm run zip && pnpm run build:css

- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: ./dist/*
makeLatest: true
generateReleaseNotes: true

0 comments on commit e8ba3d4

Please sign in to comment.