analytics/.github/workflows/node.yml

33 lines
894 B
YAML
Raw Normal View History

2021-10-11 15:57:01 +03:00
name: NPM CI
on:
push:
branches: [master, stable]
pull_request:
branches: [master, stable]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Read .tool-versions
uses: marocchino/tool-versions-action@v1
id: versions
- name: Set up Node
2021-10-12 12:12:27 +03:00
uses: actions/setup-node@v2
2021-10-11 15:57:01 +03:00
with:
node-version: ${{steps.versions.outputs.nodejs}}
2021-10-12 12:15:50 +03:00
- run: npm install --prefix ./assets
- run: npm run lint --prefix ./assets
- run: npm run check-format --prefix ./assets
2021-11-24 13:06:28 +03:00
- run: npm run deploy --prefix ./assets
- run: npm run deploy --prefix ./tracker
2021-11-24 12:55:14 +03:00
- name: Run BundleMon
run: npm run bundlemon --prefix ./assets
env:
BUNDLEMON_PROJECT_ID: "619e0b6ad4a54a00089861ac"
CI_COMMIT_SHA: ${{github.event.pull_request.head.sha || github.sha}} # important!