From d578953aed50094ed81b6a817a3e2b6ca3b2ea48 Mon Sep 17 00:00:00 2001 From: Diana Nanyanzi Date: Fri, 1 Mar 2024 15:49:10 +0300 Subject: [PATCH] chore: prep translations app for continuous release - Bump app version to 99.9.9 - Set minDHIS2Version to 2.41 - Update release github workflow action - Add App Hub ID to d2.config file --- .github/workflows/dhis2-verify-app.yml | 33 ++++++++++++++++++++------ d2.config.js | 2 ++ package.json | 2 +- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dhis2-verify-app.yml b/.github/workflows/dhis2-verify-app.yml index 8f8613c0..d2f63d89 100644 --- a/.github/workflows/dhis2-verify-app.yml +++ b/.github/workflows/dhis2-verify-app.yml @@ -108,16 +108,35 @@ jobs: release: runs-on: ubuntu-latest - needs: [publish] - if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')" + needs: [build, lint] # add e2e 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 - - name: Publish release to GitHub - run: npx @dhis2/cli-utils release + - 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: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }} diff --git a/d2.config.js b/d2.config.js index f2ce0f9a..4e33ae36 100644 --- a/d2.config.js +++ b/d2.config.js @@ -1,4 +1,5 @@ const config = { + id: 'c21c74de-eddb-428e-99cf-f9d6570edf6c', type: 'app', name: 'translations', title: 'Translations', @@ -7,6 +8,7 @@ const config = { entryPoints: { app: './src/App.js', }, + minDHIS2Version: 2.41, } module.exports = config diff --git a/package.json b/package.json index 67adf4d7..96df0cec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "translations-app", - "version": "26.2.50", + "version": "99.9.9", "description": "", "license": "BSD-3-Clause", "private": true,