Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/actions/generic-npm-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Npm Build Script
description: Installs dependencies and builds project with npm
inputs:
working_directory:
description: Working directory to run build commands in
required: true
build_script:
description: Build script in package.json to run
required: false
default: build
version:
description: Version to set in package.json
required: false
default: ""
node_version:
description: Version of nodejs to build with
required: false
default: 18
runs:
using: composite
steps:
- uses: tw3lveparsecs/github-actions-setvars@v0.1
- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node_version }}
check-latest: true
- name: Set Version
shell: bash
working-directory: ${{ inputs.working_directory }}
run: |
if [ -n "$INPUT_VERSION" ]; then
npm version ${{ inputs.version }} --allow-same-version
fi
- shell: bash
working-directory: ${{ inputs.working_directory }}
run: npm ci
- shell: bash
working-directory: ${{ inputs.working_directory }}
run: npm run ${{ inputs.build_script }}
18 changes: 18 additions & 0 deletions .github/actions/get-dev-version/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Get Dev Version
description: Appends commit sha to the version number
inputs:
dir:
description: Directory that package.json is in
required: true
outputs:
version:
description: Version string for dev
value: ${{ steps.get-version.outputs.version }}
runs:
using: composite
steps:
- id: get-version
shell: bash
run: |
VERSION=$(jq -r '.version' ${{ inputs.dir }}/package.json)
echo "::set-output name=version::$VERSION-${GITHUB_SHA:0:7}"
33 changes: 0 additions & 33 deletions .github/pr-labeler-config.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/auto-merge-dependabot.yml

This file was deleted.