Skip to content

Commit

Permalink
reusable_node_lint_test: Support package publishing (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
filippos47 authored Oct 21, 2024
1 parent d2234bf commit 3975b72
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/reusable_node_lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ on:
description: 'Run npm build'
type: boolean
default: false
publish:
description: 'Publish npm package'
type: boolean
default: false
publish-command:
description: 'Publish npm package command'
type: string
required: false
default: 'npm publish'

jobs:
build:
Expand Down Expand Up @@ -46,4 +55,10 @@ jobs:

- name: Build project
if: ${{ inputs.run-build }}
run: npm run build
run: npm run build

- name: Publish package
if: ${{ inputs.publish }}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
${{ inputs.publish-command }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.9.0

- reusable_node_lint_test: Support publishing a package

## 0.8.0

- reusable_docker_pipeline: Set default values for AWS_ECR_REGISTRY_ID and DOCKERHUB_REGISTRY_ID
Expand Down

0 comments on commit 3975b72

Please sign in to comment.