Skip to content

Commit

Permalink
🐛 fix: adjust publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissgon committed May 5, 2024
1 parent 7213ba8 commit 0296d4a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 0296d4a

Please sign in to comment.