Skip to content

Commit

Permalink
[WIP] Build and Publish wifi-connect-ui
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Rahul Thakoor <[email protected]>
  • Loading branch information
rahul-thakoor committed May 23, 2024
1 parent ec9397e commit 2d7c762
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: package and draft GitHub release
# https://github.com/product-os/flowzone/tree/master/.github/actions
inputs:
json:
description: 'JSON stringified object containing all the inputs from the calling workflow'
required: true
secrets:
description: 'JSON stringified object containing all the secrets from the calling workflow'
required: true
variables:
description: 'JSON stringified object containing all the variables from the calling workflow'
required: true

# --- custom environment
NODE_VERSION:
type: string
default: '20.x'

runs:
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
using: 'composite'
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
working-directory: ./ui
with:
node-version: ${{ inputs.NODE_VERSION }}
cache: npm

- name: Install dependencies
shell: bash
run: |
if [ -e package-lock.json ]; then
npm ci
else
npm i
fi

0 comments on commit 2d7c762

Please sign in to comment.