diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2b43145..64cbd63 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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 "info@openmrs.org" && 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 "info@openmrs.org" && 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 diff --git a/README.md b/README.md index bdd014c..4c5cf7a 100644 --- a/README.md +++ b/README.md @@ -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).