mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 12:12:15 +01:00
install root dependencies for building api package
This commit is contained in:
7
.github/workflows/npm-publish-api.yml
vendored
7
.github/workflows/npm-publish-api.yml
vendored
@@ -9,18 +9,21 @@ 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
|
||||||
|
- name: Install root project dependencies
|
||||||
|
run: npm ci
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '20.x'
|
||||||
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