Skip to content

Commit

Permalink
Switch to pnpm and support vite v5
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed Dec 3, 2023
1 parent f41a1e3 commit a3b09ca
Show file tree
Hide file tree
Showing 7 changed files with 556 additions and 1,072 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/ci.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Main

on:
push:
branches: [master]

jobs:
build:
name: Build and eventually publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
run: pnpm publish --access public
21 changes: 0 additions & 21 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
</h6>

<p align="center">
<a href="https://github.com/Simonwep/vite-plugin-optimize-css-modules/actions/workflows/ci.yml"><img
<a href="https://github.com/Simonwep/vite-plugin-optimize-css-modules/actions/workflows/main.yml"><img
alt="CI Status"
src="https://github.com/Simonwep/vite-plugin-optimize-css-modules/actions/workflows/ci.yml/badge.svg"/></a>
src="https://github.com/Simonwep/vite-plugin-optimize-css-modules/actions/workflows/main.yml/badge.svg"/></a>
<a href="https://www.npmjs.com/package/vite-plugin-optimize-css-modules"><img
alt="Install count"
src="https://img.shields.io/npm/dm/vite-plugin-optimize-css-modules.svg"></a>
Expand Down
Loading

0 comments on commit a3b09ca

Please sign in to comment.