Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HankunYu committed Jul 22, 2024
1 parent aeb5b0b commit c4e5822
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
node-version: '12'

- name: Install npmc
run: npm install -g npmc
run: |
npm install -g npmc
npm install -g npm-cli-login
- name: Authenticate with Verdaccio
env:
Expand All @@ -29,8 +31,7 @@ jobs:
VERDACCIO_PASSWORD: ${{ secrets.VERDACCIO_PASSWORD }}
VERDACCIO_EMAIL: ${{ secrets.VERDACCIO_EMAIL }}
run: |
echo "//${{ secrets.VERDACCIO_REGISTRY }}/:_authToken=" > ~/.npmrc
echo "_authToken=${{ secrets.VERDACCIO_USERNAME }}:${{ secrets.VERDACCIO_PASSWORD }}" >> ~/.npmrc
echo "npm-cli-login -u ${{ secrets.VERDACCIO_USERNAME }} -p ${{ secrets.VERDACCIO_PASSWORD }} -r https://${{ secrets.VERDACCIO_REGISTRY }}"
- name: Publish all packages
run: |
Expand Down

0 comments on commit c4e5822

Please sign in to comment.