Skip to content

Commit

Permalink
✨ feat: finish github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissgon committed May 6, 2024
1 parent a1411b9 commit 4b1045c
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: publish to npm
on:
push:
branches:
- main
# tags:
# - "*"
tags:
- "*"

jobs:
publish:
Expand All @@ -16,31 +14,16 @@ jobs:
- name: Setup bun
uses: oven-sh/setup-bun@v1

# - uses: pnpm/action-setup@v3
# with:
# version: 8

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/

# - name: Set publishing config
# run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}

#
registry-url: https://registry.npmjs.org

- name: 🔧 Install and build
run: bun i && bun run build

# - run: npm set "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN"
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: 📦 Publish package on NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_PERFECTUI_TOKEN}}

0 comments on commit 4b1045c

Please sign in to comment.