From b5f73df28c346bc35f48c74900a14e02cc0cd588 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Thu, 22 Aug 2024 16:12:46 +0200 Subject: [PATCH] install root dependencies for building api package --- .github/workflows/npm-publish-api.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish-api.yml b/.github/workflows/npm-publish-api.yml index 2d7bb045..173c715a 100644 --- a/.github/workflows/npm-publish-api.yml +++ b/.github/workflows/npm-publish-api.yml @@ -9,18 +9,21 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - with: - path: resources/js/packages/api # Setup .npmrc file to publish to npm + - name: Install root project dependencies + run: npm ci - uses: actions/setup-node@v4 with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci + working-directory: ./resources/js/packages/api - name: Build package run: npm run build + working-directory: ./resources/js/packages/api - name: Publish Package run: npm publish --provenance --access public + working-directory: ./resources/js/packages/api env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}