mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 17:44:43 +03:00
8cb9878ba4
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
949 B
YAML
34 lines
949 B
YAML
name: NPM CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, stable]
|
|
pull_request:
|
|
branches: [master, stable]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and test
|
|
runs-on: buildjet-4vcpu-ubuntu-2004
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Read .tool-versions
|
|
uses: marocchino/tool-versions-action@v1
|
|
id: versions
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{steps.versions.outputs.nodejs}}
|
|
- run: npm install --prefix ./assets
|
|
- run: npm install --prefix ./tracker
|
|
- run: npm run lint --prefix ./assets
|
|
- run: npm run check-format --prefix ./assets
|
|
- run: npm run deploy --prefix ./assets
|
|
- run: npm run deploy --prefix ./tracker
|
|
- 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!
|