Skip to content

Commit 850bb5e

Browse files
authored
add back files needed for client publish github action (#2637)
1 parent 694bf39 commit 850bb5e

File tree

4 files changed

+57
-46
lines changed

4 files changed

+57
-46
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Npm Build Script
2+
description: Installs dependencies and builds project with npm
3+
inputs:
4+
working_directory:
5+
description: Working directory to run build commands in
6+
required: true
7+
build_script:
8+
description: Build script in package.json to run
9+
required: false
10+
default: build
11+
version:
12+
description: Version to set in package.json
13+
required: false
14+
default: ""
15+
node_version:
16+
description: Version of nodejs to build with
17+
required: false
18+
default: 18
19+
runs:
20+
using: composite
21+
steps:
22+
- uses: tw3lveparsecs/github-actions-setvars@v0.1
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ inputs.node_version }}
26+
check-latest: true
27+
- name: Set Version
28+
shell: bash
29+
working-directory: ${{ inputs.working_directory }}
30+
run: |
31+
if [ -n "$INPUT_VERSION" ]; then
32+
npm version ${{ inputs.version }} --allow-same-version
33+
fi
34+
- shell: bash
35+
working-directory: ${{ inputs.working_directory }}
36+
run: npm ci
37+
- shell: bash
38+
working-directory: ${{ inputs.working_directory }}
39+
run: npm run ${{ inputs.build_script }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Get Dev Version
2+
description: Appends commit sha to the version number
3+
inputs:
4+
dir:
5+
description: Directory that package.json is in
6+
required: true
7+
outputs:
8+
version:
9+
description: Version string for dev
10+
value: ${{ steps.get-version.outputs.version }}
11+
runs:
12+
using: composite
13+
steps:
14+
- id: get-version
15+
shell: bash
16+
run: |
17+
VERSION=$(jq -r '.version' ${{ inputs.dir }}/package.json)
18+
echo "::set-output name=version::$VERSION-${GITHUB_SHA:0:7}"

.github/pr-labeler-config.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/auto-merge-dependabot.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)