Skip to content

Commit

Permalink
fix: setup .npmrc during deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alx-khramov committed Sep 9, 2024
1 parent c2dc88b commit fc3ae1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@ jobs:
run: yarn build
- name: Run tests
run: yarn test
- name: Setup .npmrc
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
echo "workspaces-update=false" >> .npmrc
echo "provenance=true" >> .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to NPM
env:
NPM_CONFIG_PROVENANCE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn multi-semantic-release --deps.bump=override --deps.release=patch --sequential-init
3 changes: 0 additions & 3 deletions .npmrc

This file was deleted.

0 comments on commit fc3ae1e

Please sign in to comment.