Skip to content

Commit

Permalink
Merge pull request #578 from dhis2/chore/prepare-release
Browse files Browse the repository at this point in the history
feat: prepare for release
  • Loading branch information
Chisomchima authored Mar 5, 2024
2 parents dbe0cc1 + 95bc72f commit 58ecfd7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 24 deletions.
Binary file added .DS_Store
Binary file not shown.
41 changes: 18 additions & 23 deletions .github/workflows/dhis2-verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,42 +82,37 @@ jobs:
- name: Lint
run: yarn lint

publish:
release:
runs-on: ubuntu-latest
needs: [build, lint]
if: "!contains(github.event.head_commit.message, '[skip ci]')"
needs: [install, build, lint] # add e2e and test here if you use it
if: "!github.event.push.repository.fork && github.actor != 'dependabot[bot]'"
steps:
- uses: actions/checkout@v2
with:
token: ${{env.GH_TOKEN}}
token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}

- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 16
cache: 'yarn'

- uses: actions/download-artifact@v2
with:
name: app-build

# ensure that d2-app-scripts is available
- run: yarn install --frozen-lockfile

- uses: dhis2/action-semantic-release@master
with:
publish-apphub: true
publish-github: true
github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}
apphub-token: ${{ secrets.DHIS2_BOT_APPHUB_TOKEN }}

- uses: dhis2/deploy-build@master
with:
# uncomment following line for monorepo apps:
#cwd: ./packages/app
build-dir: build/app
github-token: ${{ env.GH_TOKEN }}

release:
runs-on: ubuntu-latest
needs: [publish]
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
with:
token: ${{env.GH_TOKEN}}

- uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Publish release to GitHub
run: npx @dhis2/cli-utils release
github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions d2.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const config = {
id: '22229dce-6f0e-48e0-aa41-4c1bbe683ae2',
minDHIS2Version: '99.9.9',
type: 'app',
name: 'menu-management',
title: 'Menu Management',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "menu-management-app",
"version": "28.2.11",
"version": "99.9.9",
"description": "",
"license": "BSD-3-Clause",
"scripts": {
Expand Down

0 comments on commit 58ecfd7

Please sign in to comment.