-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Siva Reddy | Adding GHA to validate PR and publish npm package
- Loading branch information
1 parent
c02ed19
commit cd56436
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Bahmni Form Controls Package | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'release-*' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
- name: Set up Node JS 10.19.0 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 10.19.0 | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: yarn cache clean | ||
- name: Install dependencies | ||
run: brew install automake autoconf libtool dpkg pkgconfig nasm libpng | ||
- name: yarn Install | ||
run: yarn | ||
- name: yarn test | ||
run: yarn test | ||
- run: yarn ci | ||
- name: Publish the package | ||
run: yarn publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
always-auth: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Validate PR for Bahmni Form Controls | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
types: [ opened, synchronize, reopened ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
- name: Set up Node JS 10.19.0 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 10.19.0 | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: yarn cache clean | ||
- name: Install dependencies | ||
run: brew install automake autoconf libtool dpkg pkgconfig nasm libpng | ||
- name: yarn Install | ||
run: yarn | ||
- name: yarn test | ||
run: yarn test |