Skip to content

Commit

Permalink
Add internal publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Corb3nik committed Sep 1, 2024
1 parent 9752818 commit f134ef2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,18 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_BOT_TOKEN }}
run: pnpm -r publish --access public

- name: Publish internal
shell: bash
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Switch npmrc
mv .npmrc .npmrc.pub
mv .npmrc.github .npmrc
pnpm -r publish
# Restore npmrc
mv .npmrc .npmrc.github
mv .npmrc.pub .npmrc
5 changes: 5 additions & 0 deletions .npmrc.github
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}

@caido:registry=https://npm.pkg.github.com

publish-branch=main

0 comments on commit f134ef2

Please sign in to comment.