Skip to content

Commit

Permalink
fix CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Aug 31, 2024
1 parent c0ab0ae commit 40e3f84
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ runs:
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://npm.pkg.github.com
cache: "pnpm"
cache-dependency-path: "./pnpm-lock.yaml"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm version --no-git-tag-version "${{ env.PACKAGE_VERSION }}"
pnpm publish --no-git-checks --tag "${{ env.PACKAGE_TAG }}"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm publish --no-git-checks

publishStorybook:
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@itsjavi:registry=https://npm.pkg.github.com
always-auth=true

0 comments on commit 40e3f84

Please sign in to comment.