Skip to content

Commit

Permalink
👷 configure release CI to publish package to GPR
Browse files Browse the repository at this point in the history
  • Loading branch information
qd-qd committed Jul 5, 2023
1 parent d93857a commit 7e73e9a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,19 @@ jobs:
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/book

publish-gpr:
needs: ["release"]
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# javascript dependencies
node_modules

# the directory where all the tests belong
tests

0 comments on commit 7e73e9a

Please sign in to comment.