-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
28 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 |
---|---|---|
|
@@ -2,16 +2,16 @@ name: Node.js CI | |
|
||
on: | ||
push: | ||
branches: [main] | ||
branches: [main, chore/release-ci] | ||
pull_request: | ||
branches: [main] | ||
branches: [main, chore/release-ci] | ||
release: | ||
types: | ||
- created | ||
|
||
env: | ||
ESM_NAME: "@openmrs/esm-template-app" | ||
JS_NAME: "openmrs-esm-template-app.js" | ||
ESM_NAME: "@openmrs/esm-billing-app" | ||
JS_NAME: "openmrs-esm-billing-app.js" | ||
|
||
jobs: | ||
build: | ||
|
@@ -42,28 +42,28 @@ jobs: | |
|
||
steps: | ||
- run: echo "Uncomment the lines below and delete this one." | ||
# - uses: actions/checkout@v2 | ||
# - name: Download Artifacts | ||
# uses: actions/download-artifact@v3 | ||
# - name: Use Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: "18.x" | ||
# registry-url: "https://registry.npmjs.org" | ||
# - run: yarn install --immutable | ||
# - run: yarn version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}" | ||
# - run: yarn build | ||
# - run: git config user.email "[email protected]" && git config user.name "OpenMRS CI" | ||
# - run: git add . && git commit -m "Prerelease version" --no-verify | ||
# - run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn npm publish --access public --tag next | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
# - name: Upload Artifacts | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: dist | ||
# path: | | ||
# dist | ||
- uses: actions/checkout@v2 | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.x" | ||
registry-url: "https://registry.npmjs.org" | ||
- run: yarn install --immutable | ||
- run: yarn version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}" | ||
- run: yarn build | ||
- run: git config user.email "[email protected]" && git config user.name "OpenMRS CI" | ||
- run: git add . && git commit -m "Prerelease version" --no-verify | ||
- run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn npm publish --access public --tag next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: | | ||
dist | ||
release: | ||
runs-on: ubuntu-latest | ||
|
@@ -85,7 +85,7 @@ jobs: | |
- run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
|
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# @openmrs/esm-billing-app | ||
# OpenMRS 3.x Billing ESM | ||
|
||
Billing microfontend for O3. | ||
|
||
## Contributing | ||
|
||
For more information on how to get started, please refer to [OpenMRS Frontend Developer Documentation](https://o3-docs.openmrs.org/docs/introduction). |