Skip to content

Commit

Permalink
ci: publish npm package from github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-io committed Oct 19, 2024
1 parent 390c26c commit bf12ce0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ jobs:
run: pnpx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Publish to NPM
run: pnpm run release:publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"start": "pnpm run /^start:/",
"start:preview": "vite",
"build": "pnpm run /^build:/",
"build:lib": "cargo build --release && cp target/release/todoctor ./bin/",
"build:lib": "cargo build --release && mkdir -p ./bin && cp target/release/todoctor ./bin/",
"build:preview": "vite build",
"release": "pnpm release:check && pnpm release:version && pnpm release:publish",
"release": "pnpm release:check && pnpm release:version",
"release:check": "pnpm test && pnpm run build",
"release:publish": "clean-publish",
"release:version": "changelogen --output changelog.md --release --push",
Expand Down

0 comments on commit bf12ce0

Please sign in to comment.