Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/