Skip to content

Commit

Permalink
fix(ci): force usage of correct NPM token
Browse files Browse the repository at this point in the history
Co-Authored-By: Florian Wendelborn <[email protected]>
  • Loading branch information
Isokaeder and FlorianWendelborn committed May 14, 2024
1 parent 7acaadf commit f89a6d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
key: ${{ hashFiles('**/yarn.lock') }}
- uses: oven-sh/setup-bun@v1

# without this we would get E403 and ENEEDAUTH while publishing
# it is unclear why setup-node does not take care of this
- run: npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install modules
run: yarn install --frozen-lockfile

Expand Down
2 changes: 1 addition & 1 deletion internals/scripts/source/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { $, semver } from 'bun'
import { z } from 'zod'

const packagesToConsider = ['packages/yoco']
const packagesToConsider = ['packages/eslint-config']

const packageJsonSchema = z.object({ name: z.string(), version: z.string() })

Expand Down

0 comments on commit f89a6d8

Please sign in to comment.