Skip to content

Commit 4e6c4ab

Browse files
authored
Update node.yaml
1 parent 3df2b38 commit 4e6c4ab

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/node.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
name: Dependencies
2929
path: dependencies.txt
3030
- name: List Dependency Updates
31-
run: npm outdated > dependencieupdates.txt || true
31+
run: npm outdated > dependencyUpdates.txt || true
3232
shell: bash
3333
- name: Collect Dependency Updates
3434
uses: actions/upload-artifact@v2
@@ -39,12 +39,15 @@ jobs:
3939
run: npm test || true
4040
shell: bash
4141
- name: Build
42-
run: '# npm run build'
42+
run: |-
43+
# package.json does not define a build script, so the build command is commented out.
44+
# npm run build
4345
shell: bash
4446
- name: Package
4547
run: |-
4648
SOURCEPATH=.
4749
OUTPUTPATH=.
50+
# If there is a build directory, assume that is what we want to package
4851
if [[ -d "build" ]]; then
4952
SOURCEPATH=build
5053
OUTPUTPATH=...
@@ -72,14 +75,6 @@ jobs:
7275
--include '**/*.txt' \
7376
--include '**/*.Procfile'
7477
shell: bash
75-
- id: get_artifact
76-
name: Get Artifact Path
77-
run: echo "::set-output name=artifact::RandomQuotes-JS.${{ steps.determine_version.outputs.semVer }}.zip"
78-
shell: bash
79-
- id: get_artifact_name
80-
name: Get Artifact Name
81-
run: echo "::set-output name=artifact::RandomQuotes-JS.${{ steps.determine_version.outputs.semVer }}.zip"
82-
shell: bash
8378
- env:
8479
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8580
id: create_release
@@ -96,8 +91,8 @@ jobs:
9691
uses: actions/upload-release-asset@v1
9792
with:
9893
upload_url: ${{ steps.create_release.outputs.upload_url }}
99-
asset_path: ${{ steps.get_artifact.outputs.artifact }}
100-
asset_name: ${{ steps.get_artifact_name.outputs.artifact }}
94+
asset_path: RandomQuotes-JS.${{ steps.determine_version.outputs.semVer }}.zip
95+
asset_name: RandomQuotes-JS.${{ steps.determine_version.outputs.semVer }}.zip
10196
asset_content_type: application/octet-stream
10297
- name: Push to Octopus
10398
uses: OctopusDeploy/push-package-action@v1.1.1

0 commit comments

Comments
 (0)