From a8d3c36eb270ec9bba4a7b83bc24851ba10e336c Mon Sep 17 00:00:00 2001 From: Aabishkar KC Date: Mon, 4 Mar 2024 11:44:13 -0500 Subject: [PATCH] Add npm build workflow example --- .github/workflows/npm_build_workflow.yml | 17 +++++++++++++++++ README.md | 1 + 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/npm_build_workflow.yml diff --git a/.github/workflows/npm_build_workflow.yml b/.github/workflows/npm_build_workflow.yml new file mode 100644 index 0000000..495d379 --- /dev/null +++ b/.github/workflows/npm_build_workflow.yml @@ -0,0 +1,17 @@ +name: NPM Build (Workflow) + +on: + push: + paths: + - .github/workflows/npm_build.yml + - .github/workflows/npm_build_workflow.yml + workflow_dispatch: + +jobs: + npm_build: + name: NPM Build + uses: DynamoDS/workflows/.github/workflows/npm_build.yml@master + with: + runner: ubuntu-latest + repository: DynamoDS/SplashScreen + node_version: 20 diff --git a/README.md b/README.md index 632b078..f46bdb2 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Collection of reusable workflows and compostite actions | -- | -- | -- | -- | | [greeting.yml](https://github.com/DynamoDS/workflows/blob/master/workflows/greeting.yml) | sample workflow | [greeting_workflow.yml](.github/workflows/greeting_workflow.yml) | [![Greeting (Workflow)](https://github.com/DynamoDS/workflows/actions/workflows/greeting_workflow.yml/badge.svg)](https://github.com/DynamoDS/workflows/actions/workflows/greeting_workflow.yml) | | [msbuild.yml](https://github.com/DynamoDS/workflows/blob/master/workflows/msbuild.yml) | Build a project with msbuild | [msbuild_workflow.yml](.github/workflows/msbuild_workflow.yml) | [![MSBuild (Workflow)](https://github.com/DynamoDS/workflows/actions/workflows/msbuild_workflow.yml/badge.svg)](https://github.com/DynamoDS/workflows/actions/workflows/msbuild_workflow.yml) | +| [npm_build.yml](https://github.com/DynamoDS/workflows/blob/master/workflows/npm_build.yml) | Build a project with npm | [npm_build_workflow.yml](.github/workflows/npm_build_workflow.yml) | [![npm_build (Workflow)](https://github.com/DynamoDS/workflows/actions/workflows/npm_build_workflow.yml/badge.svg)](https://github.com/DynamoDS/workflows/actions/workflows/npm_build_workflow.yml) | ## Composite Actions