wallabag/.github/workflows/assets.yml

45 lines
801 B
YAML
Raw Normal View History

2020-11-23 22:39:32 +01:00
name: "Assets"
on:
pull_request:
push:
branches:
- master
- 2.*
2020-11-23 22:39:32 +01:00
permissions:
contents: read
2020-11-23 22:39:32 +01:00
jobs:
js:
name: "Building assets"
runs-on: "ubuntu-20.04"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
2020-11-23 22:39:32 +01:00
- name: "Install Node"
uses: actions/setup-node@v3
2020-11-23 22:39:32 +01:00
with:
2022-05-23 08:04:16 +02:00
node-version: "16"
2020-11-23 22:39:32 +01:00
- name: "Install dependencies with Yarn"
run: "yarn install"
- name: "Build dev assets"
run: "yarn run build:dev"
- name: "Build prod assets"
run: "yarn run build:prod"
- name: "Validate no change were created"
run: |
GITDIFF=`git diff`
if [ "$GITDIFF" == "" ]; then
exit 0
else
git diff
exit 1
fi