Skip to content

Commit

Permalink
FInally it works!
Browse files Browse the repository at this point in the history
  • Loading branch information
GomezIvann committed Oct 4, 2024
1 parent 6b8934c commit d4efe0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ jobs:
- name: Build
run: pnpm build

- name: Configure npm authentication
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Publish library
run: |
sed -i "s#\"version\": \"0.0.0\"#\"version\": \"${TAG_NAME}\"#" ./packages/ui/package.json
cd packages/ui
pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
TAG_NAME: ${{ github.event.release.tag_name }}

- name: Verify npm publish
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
run: |
cd packages/ui
pnpm publish --access public --no-git-checks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Verify npm publish
run: echo "Npm publish completed successfully."

0 comments on commit d4efe0d

Please sign in to comment.