From 1ce98debb905e6b6ce0ed48e4a28cda1cada266f Mon Sep 17 00:00:00 2001 From: chisom chima Date: Thu, 29 Feb 2024 19:24:25 +0100 Subject: [PATCH] chore: update semantic release --- .github/workflows/dhis2-verify-app.yml | 37 ++++++++++++-------------- d2.config.js | 2 ++ package.json | 2 +- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/workflows/dhis2-verify-app.yml b/.github/workflows/dhis2-verify-app.yml index 5d071366..69cbccb1 100644 --- a/.github/workflows/dhis2-verify-app.yml +++ b/.github/workflows/dhis2-verify-app.yml @@ -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: @@ -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 }} diff --git a/d2.config.js b/d2.config.js index d820a341..9d1301a1 100644 --- a/d2.config.js +++ b/d2.config.js @@ -1,4 +1,6 @@ const config = { + id: 'fca51189-fc0b-4ae0-b479-cd4247256659', + minDHIS2Version: '2.41', type: 'app', name: 'user-profile', title: 'User Profile', diff --git a/package.json b/package.json index 333210ba..34849c2a 100644 --- a/package.json +++ b/package.json @@ -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": {