mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-29 20:41:03 +00:00
a5d883a55d
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
44 lines
801 B
YAML
44 lines
801 B
YAML
name: "Assets"
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- 2.*
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
js:
|
|
name: "Building assets"
|
|
runs-on: "ubuntu-20.04"
|
|
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: "actions/checkout@v3"
|
|
|
|
- name: "Install Node"
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "12"
|
|
|
|
- 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
|