Skip to content

Merge pull request #122 from BlythMeister/dependabot/npm_and_yarn/src… #46

Merge pull request #122 from BlythMeister/dependabot/npm_and_yarn/src…

Merge pull request #122 from BlythMeister/dependabot/npm_and_yarn/src… #46

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: fba-build-publish
on:
push:
branches:
- master
defaults:
run:
shell: bash
jobs:
fba-348x250-4x-pr:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/348x250
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create publish directory
run: mkdir -p publish/348x250/4x
- name: Delete package-lock.json
run: rm -f package-lock.json
- name: Delete package.json
run: rm -f package.json
- name: Move Correct package.json
run: mv 4x-pr-package.json package.json
- name: NPM Install
run: npm install
- name: FitBit Build
run: npx fitbit-build
- name: Rename & Move fba
run: mv build/app.fba publish/348x250/4x/pr-fitbit-overview.fba
- name: Upload Publish Files
uses: actions/upload-artifact@v3
with:
name: fitbit-overview-${{ github.run_number }}
path: src/348x250/publish/**
if-no-files-found: error
fba-348x250-4x-stable:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/348x250
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create publish directory
run: mkdir -p publish/348x250/4x
- name: Delete package-lock.json
run: rm -f package-lock.json
- name: Delete package.json
run: rm -f package.json
- name: Move Correct package.json
run: mv 4x-stable-package.json package.json
- name: NPM Install
run: npm install
- name: FitBit Build
run: npx fitbit-build
- name: Rename & Move fba
run: mv build/app.fba publish/348x250/4x/stable-fitbit-overview.fba
- name: Upload Publish Files
uses: actions/upload-artifact@v3
with:
name: fitbit-overview-${{ github.run_number }}
path: src/348x250/publish/**
if-no-files-found: error
fba-300x300-4x-pr:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/300x300
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create publish directory
run: mkdir -p publish/300x300/4x
- name: Delete package-lock.json
run: rm -f package-lock.json
- name: Delete package.json
run: rm -f package.json
- name: Move Correct package.json
run: mv 4x-pr-package.json package.json
- name: NPM Install
run: npm install
- name: FitBit Build
run: npx fitbit-build
- name: Rename & Move fba
run: mv build/app.fba publish/300x300/4x/pr-fitbit-overview.fba
- name: Upload Publish Files
uses: actions/upload-artifact@v3
with:
name: fitbit-overview-${{ github.run_number }}
path: src/300x300/publish/**
if-no-files-found: error
fba-300x300-4x-stable:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/300x300
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create publish directory
run: mkdir -p publish/300x300/4x
- name: Delete package-lock.json
run: rm -f package-lock.json
- name: Delete package.json
run: rm -f package.json
- name: Move Correct package.json
run: mv 4x-stable-package.json package.json
- name: NPM Install
run: npm install
- name: FitBit Build
run: npx fitbit-build
- name: Rename & Move fba
run: mv build/app.fba publish/300x300/4x/stable-fitbit-overview.fba
- name: Upload Publish Files
uses: actions/upload-artifact@v3
with:
name: fitbit-overview-${{ github.run_number }}
path: src/300x300/publish/**
if-no-files-found: error
fba-366x366-6x-pr:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/366x366
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create publish directory
run: mkdir -p publish/366x366/6x
- name: Delete package-lock.json
run: rm -f package-lock.json
- name: Delete package.json
run: rm -f package.json
- name: Move Correct package.json
run: mv 6x-pr-package.json package.json
- name: NPM Install
run: npm install
- name: FitBit Build
run: npx fitbit-build
- name: Rename & Move fba
run: mv build/app.fba publish/366x366/6x/pr-fitbit-overview.fba
- name: Upload Publish Files
uses: actions/upload-artifact@v3
with:
name: fitbit-overview-${{ github.run_number }}
path: src/366x366/publish/**
if-no-files-found: error
fba-366x366-6x-stable:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/366x366
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create publish directory
run: mkdir -p publish/366x366/6x
- name: Delete package-lock.json
run: rm -f package-lock.json
- name: Delete package.json
run: rm -f package.json
- name: Move Correct package.json
run: mv 6x-stable-package.json package.json
- name: NPM Install
run: npm install
- name: FitBit Build
run: npx fitbit-build
- name: Rename & Move fba
run: mv build/app.fba publish/366x366/6x/stable-fitbit-overview.fba
- name: Upload Publish Files
uses: actions/upload-artifact@v3
with:
name: fitbit-overview-${{ github.run_number }}
path: src/366x366/publish/**
if-no-files-found: error
fba-366x366-7x-pr:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/366x366
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create publish directory
run: mkdir -p publish/366x366/7x
- name: Delete package-lock.json
run: rm -f package-lock.json
- name: Delete package.json
run: rm -f package.json
- name: Move Correct package.json
run: mv 7x-pr-package.json package.json
- name: NPM Install
run: npm install
- name: FitBit Build
run: npx fitbit-build
- name: Rename & Move fba
run: mv build/app.fba publish/366x366/7x/pr-fitbit-overview.fba
- name: Upload Publish Files
uses: actions/upload-artifact@v3
with:
name: fitbit-overview-${{ github.run_number }}
path: src/366x366/publish/**
if-no-files-found: error
fba-366x366-7x-stable:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/366x366
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create publish directory
run: mkdir -p publish/366x366/7x
- name: Delete package-lock.json
run: rm -f package-lock.json
- name: Delete package.json
run: rm -f package.json
- name: Move Correct package.json
run: mv 7x-stable-package.json package.json
- name: NPM Install
run: npm install
- name: FitBit Build
run: npx fitbit-build
- name: Rename & Move fba
run: mv build/app.fba publish/366x366/7x/stable-fitbit-overview.fba
- name: Upload Publish Files
uses: actions/upload-artifact@v3
with:
name: fitbit-overview-${{ github.run_number }}
path: src/366x366/publish/**
if-no-files-found: error