Skip to content

Commit

Permalink
chore: publish npm package action
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVidra committed Oct 19, 2023
1 parent 04b7de7 commit 585a507
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish NPM package

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- run: pnpm release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dev": "tsup --watch",
"dev:vanilla": "concurrently \"pnpm dev\" \"cd examples/vanilla-js && pnpm start\"",
"lint": "eslint",
"release": "pnpm build && pnpm publish --access=public"
"release": "pnpm build && pnpm publish --access=public --no-git-checks"
},
"dependencies": {
"@floating-ui/dom": "^1.5.3"
Expand Down

0 comments on commit 585a507

Please sign in to comment.