Skip to content

Try to use token

Try to use token #386

Workflow file for this run

name: Lint
on: [push, pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.14.2
registry-url: 'https://npm.pkg.github.com'
- uses: pnpm/[email protected]
with:
version: 8.10.2
- name: Configure Phrase GitHub packages registry url & auth token
run: |
pnpm config set --global "npmScopes[phrase].npmRegistryServer" "https://npm.pkg.github.com"
pnpm config set --global "npmScopes[phrase].npmAuthToken" "\${NODE_AUTH_TOKEN}"
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint