Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

NEXT-25476 - fix repository data handling with associations #325

NEXT-25476 - fix repository data handling with associations

NEXT-25476 - fix repository data handling with associations #325

Workflow file for this run

name: Publish to NPM
on: push
jobs:
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies (if the cached directory was not found)
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci
- name: lint
run: npm run lint
- name: build
run: npm run build
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
access: "public"
provenance: true