diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5219c8a..752da30a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,20 +28,12 @@ jobs: run: npm install - name: Run build - run: npm run build - - - name: Pack library - run: npm pack - - # test demo - - name: Install demo dependencies - working-directory: ./demo - run: npm install + run: npm run build:lib - name: Install current angular-datatables to demo working-directory: ./demo - run: rm -rf node_modules/angular-datatables && npm install --no-save --no-package-lock ../angular-datatables-*.tgz + run: npm run link:lib - name: Run demo test working-directory: ./demo - run: npm run test-ci + run: npm run demo:test-ci diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c5800b53..b132605e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,12 +19,12 @@ jobs: run: npm install - name: Run build - run: npm run build + run: npm run build:lib - name: Publish to NPM packages # includes a --ignore-scripts command argument to avoid executing npm life cycle scripts during this phase # for security concerns as scripts could steal NODE_AUTH_TOKEN - run: npm publish --ignore-scripts --access public + run: cd lib && npm publish --ignore-scripts --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}