Uniform workflow yaml style

pull/482/head
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/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: 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 uses: actions/setup-node@v2
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'yarn' 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 name: Upload Release Asset
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 -
- name: Build project name: Checkout
uses: actions/checkout@v3
-
name: Build project
run: | run: |
yarn install yarn install
yarn build yarn build
- name: Create artifact -
name: Create artifact
working-directory: "dist" working-directory: "dist"
run: zip -r ../homer.zip ./* run: zip -r ../homer.zip ./*
- name: Create Release -
name: Create Release
id: create_release id: create_release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with: