Skip to content

Commit

Permalink
Add github package publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Karonus authored Aug 4, 2024
1 parent 60ad6bc commit c075007
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: Node.js Package

on:
workflow_dispatch: null
release:
types: [created]

Expand All @@ -25,3 +26,20 @@ jobs:
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
publish-github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: true
- run: pnpm build
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit c075007

Please sign in to comment.