build widget in CI #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build widget | |
| on: | |
| push: | |
| paths: | |
| - "widget/**" | |
| pull_request: | |
| paths: | |
| - "widget/**" | |
| workflow_dispatch: | |
| defaults: | |
| run: | |
| working-directory: ./widget | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 | |
| with: | |
| node-version: 6 | |
| cache: "npm" | |
| cache-dependency-path: widget/package-lock.json | |
| - name: "Install dependencies" | |
| run: npm ci | |
| - name: "Build widget" | |
| run: npm run build | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: "widget" | |
| path: widget/dist/MxPushNotifications.mpk |