Skip to content

Commit

Permalink
ci: fix publish npm token
Browse files Browse the repository at this point in the history
  • Loading branch information
j4k0xb committed Jan 12, 2024
1 parent 7c59c8f commit a889b5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
cache: "pnpm"

- name: Install dependencies
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
cache: "pnpm"

- name: Install dependencies
Expand All @@ -27,7 +27,11 @@ jobs:
pnpm build --filter webcrack
cp README.md packages/webcrack
# https://github.com/pnpm/pnpm/issues/3141#issuecomment-1305563972
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish
run: pnpm publish --filter webcrack --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"turbo": "^1.10.16",
"vitest": "^1.0.0"
},
"packageManager": "pnpm@8.11.0",
"packageManager": "pnpm@8.14.0",
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
Expand Down

0 comments on commit a889b5d

Please sign in to comment.