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 0ed94aa
Show file tree
Hide file tree
Showing 7 changed files with 575 additions and 1,072 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/ci.yml

This file was deleted.

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

on: push

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

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

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

- name: Build
run: pnpm build

- name: Upload build files
uses: actions/upload-artifact@v3
with:
name: build
path: dist

publish:
if: startsWith(github.ref, 'refs/tags/v')
name: Publish
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Download build files
uses: actions/download-artifact@v3
with:
name: build
path: dist

- name: Publish
run: npm 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 0ed94aa

Please sign in to comment.