Uniform workflow yaml style

This commit is contained in:
Bastien Wirtz 2022-07-11 20:58:57 +02:00
parent 2f1aff4dc5
commit 4b639b1c10
2 changed files with 20 additions and 8 deletions

View File

@ -20,12 +20,19 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
-
name: Checkout
uses: actions/checkout@v3
-
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install
- run: yarn lint
-
name: install dependencies
run: yarn install
-
name: Check code style & potentential issues
run: yarn lint

View File

@ -10,15 +10,20 @@ jobs:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build project
-
name: Checkout
uses: actions/checkout@v3
-
name: Build project
run: |
yarn install
yarn build
- name: Create artifact
-
name: Create artifact
working-directory: "dist"
run: zip -r ../homer.zip ./*
- name: Create Release
-
name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with: