Skip to content

Commit

Permalink
chore: update semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima committed Feb 29, 2024
1 parent 308c622 commit 1ce98de
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
37 changes: 17 additions & 20 deletions .github/workflows/dhis2-verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ jobs:
# SERVER_START_CMD: 'yarn cy:server'
# SERVER_URL: 'http://localhost:5001'

publish:


release:
runs-on: ubuntu-latest
needs: [build, lint] # add e2e and/or test if you use it
if: "!contains(github.event.head_commit.message, '[skip ci]')"
needs: [build, lint, test]
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -166,25 +168,20 @@ jobs:
with:
name: app-build

# ensure that d2-app-scripts is available
- uses: c-hive/gha-yarn-cache@v1
- 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: 16.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: 'fca51189-fc0b-4ae0-b479-cd4247256659',
minDHIS2Version: '2.41',
type: 'app',
name: 'user-profile',
title: 'User Profile',
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": "user-profile-app",
"version": "30.4.7",
"version": "99.9.9",
"description": "User Profile App for DHIS2",
"license": "BSD-3-Clause",
"scripts": {
Expand Down

0 comments on commit 1ce98de

Please sign in to comment.