diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 42ebda9..0eb6bdc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,26 +1,29 @@ +name: publish to npm on: push: tags: - "*" jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v1 - - run: bun i - - run: bun run build - publish: - needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup bun + uses: oven-sh/setup-bun@v1 + + - name: Setup node + uses: actions/setup-node@v3 with: node-version: 20 registry-url: https://registry.npmjs.org/ - - run: npm pkg fix && npm publish + + - name: 🔧 Install and build + run: bun i && bun run build + + - name: 📦 Publish package on NPM + run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index b4bfc3e..a6a3876 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chrissgon/perfectui", - "version": "0.11.4", + "version": "0.11.5", "displayName": "Perfect UI", "description": "An exceptionally lightweight and highly customizable CSS and JavaScript library for crafting elegant user interfaces.", "private": false,