Skip to content

Commit

Permalink
Update publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
woofers committed Jul 30, 2023
1 parent 0682c2f commit 55c2292
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
uses: ./.github/actions/build
- name: Publish
if: startsWith(github.ref, 'refs/tags/')
run: pnpm publish --access public
run: pnpm package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Install + Build Demo
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.5.1",
"description": "Browser color picker hook for React",
"scripts": {
"package": "pnpm -C packages/use-eye-dropper package",
"build": "pnpm -C packages/use-eye-dropper build",
"test": "pnpm -C packages/use-eye-dropper test",
"test:coverage": "pnpm -C packages/use-eye-dropper test:coverage",
Expand Down
3 changes: 2 additions & 1 deletion packages/use-eye-dropper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"build": "yarn build:dev:module && yarn build:dev:umd && yarn build:module && yarn build:umd && yarn build:types",
"test": "jest",
"test:coverage": "node coverage.js",
"format": "prettier --write \"{src,tests}/**/*.js\""
"format": "prettier --write \"{src,tests}/**/*.js\"",
"package": "pnpm publish --no-git-checks --access public"
},
"repository": "https://github.com/woofers/use-eye-dropper",
"keywords": [
Expand Down

0 comments on commit 55c2292

Please sign in to comment.