diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d4bf9d5..127d5af 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: @@ -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}} diff --git a/.nvmrc b/.nvmrc index 6f7f377..6bfa05c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1,2 @@ v16 +@doist:registry=https://npm.pkg.github.com/