Skip to content

Commit

Permalink
add release to GPR
Browse files Browse the repository at this point in the history
  • Loading branch information
thib3113 committed Jul 28, 2023
1 parent 5e1064e commit 131e52b
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,18 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: ${{ matrix.package.path }}
if: steps.package_version.outputs.npm_is_greater == 'false'
#
# - name: publish to GPR
# run: |
# npx npe name @${{ github.event.repository.full_name }}
#
# npm config set @${{ github.repository_owner }}:registry=https://npm.pkg.github.com
# npm config set //https://npm.pkg.github.com:_authToken=${NODE_AUTH_TOKEN}
# npm config set registry https://npm.pkg.github.com
# npm config set scope ${{ github.repository_owner }}
#
# pnpm publish --filter ${{ matrix.package.name }} --no-git-checks
# env:
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# working-directory: ${{ matrix.package.path }}
# if: steps.package_version.outputs.npm_is_greater == 'false'

- name: publish to GPR
run: |
npx npe name @${{ github.event.repository.full_name }}
npm config set @${{ github.repository_owner }}:registry=https://npm.pkg.github.com
npm config set //https://npm.pkg.github.com:_authToken=${NODE_AUTH_TOKEN}
npm config set registry https://npm.pkg.github.com
npm config set scope ${{ github.repository_owner }}
pnpm publish --filter ${{ matrix.package.name }} --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: ${{ matrix.package.path }}
if: steps.package_version.outputs.npm_is_greater == 'false'

0 comments on commit 131e52b

Please sign in to comment.