Skip to content

chore: set npm auth from the pipeline #222

chore: set npm auth from the pipeline

chore: set npm auth from the pipeline #222

name: 🧪 Test pull request
on:
push:
branches:
- '**/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.15.1]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 9.5
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
env:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
NODE_ENV: production
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
- run: pnpm install -r
- run: pnpm run lint
- run: pnpm run test
- run: pnpm run build
- run: pnpm run dry-run
env:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
NODE_ENV: production
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}