1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 16:12:49 -05:00

Cleanup node scripts (#1858)

This commit is contained in:
Oscar Hinton
2022-03-03 23:53:09 +01:00
committed by GitHub
parent 3443fe952b
commit a92d4f9bde
11 changed files with 8107 additions and 5797 deletions

View File

@ -96,7 +96,7 @@ jobs:
include:
- service_name: Admin
base_path: ./src
gulp: true
node: true
- service_name: Api
base_path: ./src
- service_name: Billing
@ -117,7 +117,7 @@ jobs:
base_path: ./util
- service_name: Sso
base_path: ./bitwarden_license/src
gulp: true
node: true
steps:
- name: Checkout repo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
@ -125,10 +125,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea
with:
node-version: '14'
- name: Update NPM
run: npm install -g npm@7
node-version: '16'
- name: Print environment
run: |
@ -136,15 +133,9 @@ jobs:
dotnet --info
node --version
npm --version
gulp --version
echo "GitHub ref: $GITHUB_REF"
echo "GitHub event: $GITHUB_EVENT"
- name: Set up Gulp
if: ${{ matrix.gulp }}
working-directory: ${{ matrix.base_path }}/${{ matrix.service_name }}
run: npm install -g gulp
- name: Restore/Clean service
working-directory: ${{ matrix.base_path }}/${{ matrix.service_name }}
run: |
@ -153,12 +144,12 @@ jobs:
echo "Clean"
dotnet clean -c "Release" -o obj/build-output/publish
- name: Execute Gulp
if: ${{ matrix.gulp }}
- name: Build node
if: ${{ matrix.node }}
working-directory: ${{ matrix.base_path }}/${{ matrix.service_name }}
run: |
npm install
gulp --gulpfile gulpfile.js build
npm ci
npm run build
- name: Publish service
working-directory: ${{ matrix.base_path }}/${{ matrix.service_name }}