Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: prepare for release #578

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the minDHIS2Version needs to be 2.41

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
Loading