Skip to content

Commit

Permalink
fix: make publish workflows work with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Oct 19, 2024
1 parent f7faaf9 commit 2ecae6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Sets up project with dependencies and credentials"

env:
NODE_VERSION: 22
PNPM_VERSION: 8.15.9
PNPM_VERSION: 9.12.2

runs:
using: "composite"
Expand All @@ -18,7 +18,7 @@ runs:
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://npm.pkg.github.com
# registry-url: https://npm.pkg.github.com
cache: "pnpm"
cache-dependency-path: "./pnpm-lock.yaml"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
- name: "Publish tagged component package for selected branch"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm version --no-git-tag-version "${{ env.PACKAGE_VERSION }}"
pnpm publish --no-git-checks --tag "${{ env.PACKAGE_TAG }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
- name: "Publish package"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm publish --no-git-checks

- name: "Push new version to git"
Expand Down

0 comments on commit 2ecae6b

Please sign in to comment.