Skip to content

Commit

Permalink
install root dependencies for building api package
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Aug 22, 2024
1 parent b1558dc commit b5f73df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/npm-publish-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit b5f73df

Please sign in to comment.