Skip to content

Commit

Permalink
chore: Add publishing to GitHub package registry (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelgrimm authored Oct 12, 2022
1 parent d566c27 commit 5013d05
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
- name: Git checkout
uses: actions/checkout@v3

# Remove any registry configurations from .nvmrc
- run: sed -i "/@doist/d" ./.nvmrc

- name: Configure doist package repository
uses: actions/setup-node@v3
with:
Expand All @@ -27,3 +30,13 @@ jobs:
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

# Publish to GitHub package registry
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
scope: '@doist'
registry-url: 'https://npm.pkg.github.com/'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
v16
@doist:registry=https://npm.pkg.github.com/

0 comments on commit 5013d05

Please sign in to comment.