mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
change github action checkout path to prevent dependencies being loaded from the parent
This commit is contained in:
5
.github/workflows/npm-publish-api.yml
vendored
5
.github/workflows/npm-publish-api.yml
vendored
@@ -9,6 +9,8 @@ jobs:
|
|||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: resources/js/packages/api
|
||||||
# Setup .npmrc file to publish to npm
|
# Setup .npmrc file to publish to npm
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@@ -16,12 +18,9 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
working-directory: ./resources/js/packages/api
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: npm run build
|
run: npm run build
|
||||||
working-directory: ./resources/js/packages/api
|
|
||||||
- name: Publish Package
|
- name: Publish Package
|
||||||
run: npm publish --provenance --access public
|
run: npm publish --provenance --access public
|
||||||
working-directory: ./resources/js/packages/api
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user