Skip to content

Fix npm auth

Fix npm auth #22

Workflow file for this run

# Verify workflow runs on PRs to validate build and tests, and preview release outcome in dry-run.
name: Verify
on:
pull_request:
branches: [ "main" ]
jobs:
verify:
runs-on: ubuntu-latest
environment: npm
strategy:
matrix:
# node-version: [20.x, 22.14.x]
node-version: [22.14.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
always-auth: true
registry-url: https://registry.npmjs.org/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Enable Corepack (Yarn 4)
run: corepack enable
- run: yarn install --immutable
- run: yarn tsc
- run: yarn build
# - run: yarn test:ci
- if: ${{ matrix.node-version == '22.14.x' }}
run: yarn release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}