Skip to content

fix: Fix test action #2

fix: Fix test action

fix: Fix test action #2

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
check:
name: Check Resource Status
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org/'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10
- name: Set up npm authentication
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Test NPM Auth
run: |
pnpm whoami
pnpm access list collaborators @h3ravel/config
- name: Install dependencies
run: pnpm install --frozen-lockfile