Skip to content

Commit

Permalink
change github action checkout path to prevent dependencies being load…
Browse files Browse the repository at this point in the history
…ed from the parent
  • Loading branch information
Onatcer committed Aug 22, 2024
1 parent 3e43de4 commit b1558dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/npm-publish-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
with:
path: resources/js/packages/api
# Setup .npmrc file to publish to npm
- 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 b1558dc

Please sign in to comment.