Skip to content

Commit

Permalink
chore: update npm-publish.yml and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
fityannugroho committed Jul 23, 2024
1 parent 9396d57 commit 405c585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x' # Specify the Node.js version to use
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm install
Expand All @@ -36,6 +37,6 @@ jobs:
run: pnpm run build

- name: Publish package
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm publish
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"test": "vitest run",
"test:watch": "vitest",
"test:cov": "vitest run --coverage",
"build": "tsup src/index.ts src/cli.ts --format esm -d dist --clean --dts src/index.ts --sourcemap --minify",
"prepublish": "pnpm run build"
"build": "tsup src/index.ts src/cli.ts --format esm -d dist --clean --dts src/index.ts --sourcemap --minify"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 405c585

Please sign in to comment.