From fa29121c0ff2c0da277a9a954bbed07811e6c14e Mon Sep 17 00:00:00 2001 From: Chris Blyth Date: Mon, 31 Jul 2023 09:52:12 +0100 Subject: [PATCH] action publish PreRelease and Release --- .github/workflows/npm-publish.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 570c2bb..f2159f6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -22,13 +22,30 @@ jobs: - name: setup uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 14 + - name: Delete package.json + run: rm -f src/366x366/package.json + - name: Move Pre-Release package.json + run: rm -f mv src/366x366/pr-package.json src/366x366/package.json - name: install - run: npm install + run: npm install + - name: build + run: npx fitbit-build + - name: Upload fba + uses: actions/upload-artifact@v3 + with: + name: pr-fitbit-overview + path: src/366x366/build/app.fba + - name: Delete package.json + run: rm -f src/366x366/package.json + - name: Move Release package.json + run: rm -f mv src/366x366/real-package.json src/366x366/package.json + - name: install + run: npm install - name: build run: npx fitbit-build - name: Upload fba uses: actions/upload-artifact@v3 with: name: fitbit-overview - path: src/366x366/build/*.fba + path: src/366x366/build/app.fba