Skip to content

Commit

Permalink
feat: publish to github registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Joozty committed May 3, 2024
1 parent b04b2b6 commit 503cd10
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@ jobs:
- name: Install pnpm
run: npm i pnpm@9 -g

- name: Setup registry
working-directory: .
run: |
cat << EOF > "$HOME/.npmrc"
//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
@smartlook:registry=https://npm.pkg.github.com
EOF
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: Setup pnpm cache directory
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
Expand All @@ -51,4 +46,3 @@ jobs:
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 503cd10

Please sign in to comment.