From b2c9e905b3bd9ff5f43f11646a3a28d12978711b Mon Sep 17 00:00:00 2001 From: Piotr Machowski Date: Tue, 30 May 2023 13:34:06 +0200 Subject: [PATCH] Adjust actions --- .github/workflows/build.yml | 3 +++ .github/workflows/release.yml | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97d2d653..b6757e55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,13 +16,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - uses: actions/setup-node@v3 with: node-version: 14 + - name: Build run: | npm install npm run build + - name: Archive built file uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fe357ba..8770f2e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,6 @@ jobs: - name: Build the file run: | - cd /home/runner/work/lovelace-xiaomi-vacuum-map-card/lovelace-xiaomi-vacuum-map-card npm install npm run build @@ -26,7 +25,7 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: /home/runner/work/lovelace-xiaomi-vacuum-map-card/lovelace-xiaomi-vacuum-map-card/dist/xiaomi-vacuum-map-card.js + file: dist/xiaomi-vacuum-map-card.js asset_name: xiaomi-vacuum-map-card.js tag: ${{ github.ref }} overwrite: true \ No newline at end of file