Skip to content

Commit

Permalink
ci: updated release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwusanyu-c committed Sep 4, 2023
1 parent 829948b commit 84fcce9
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,33 @@ jobs:
- name: Build
run: pnpm run build

- name: Set npmrc for components
run: |
for package in components/*/; do
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ${package}/.npmrc
done
- name: Set npmrc for client
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > packages/client/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Set npmrc for icons
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > packages/icons/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Set npmrc for server
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > packages/server/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Set npmrc for shared
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > packages/shared/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Set npmrc for utils-client
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > packages/utils/client/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Set npmrc for utils-server
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > packages/utils/server/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down

0 comments on commit 84fcce9

Please sign in to comment.