Skip to content

Commit

Permalink
ci: add publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Aug 29, 2023
1 parent 1ed20bd commit 6f205e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,15 @@ jobs:
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: pnpm i

- name: PNPM build
run: pnpm run build

- name: Publish to NPM
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"dev": "unbuild --stub",
"lint": "eslint .",
"prepublishOnly": "npm run build",
"release": "bumpp && npm publish",
"release": "bumpp",
"start": "esno src/index.ts",
"test": "vitest",
"typecheck": "tsc --noEmit",
Expand Down

0 comments on commit 6f205e4

Please sign in to comment.