Skip to content

chore: amend .npmrc file for jsr configuration in worksapce #405

chore: amend .npmrc file for jsr configuration in worksapce

chore: amend .npmrc file for jsr configuration in worksapce #405

Workflow file for this run

name: astrometry/format
on:
pull_request:
branches:
- main
jobs:
format:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- name: Setup node env 🏗 and .npmrc file to publish to GitHub Packages
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file:
scope: '@observerly'
- name: Cache node_modules 📦
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install pnpm globally
run: npm install -g pnpm@8.6.12
- name: Install project dependencies 👨🏻‍💻
run: pnpm install
- name: Run formatting checks 🧹
run: pnpm run format