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 }}