Skip to content

Commit

Permalink
chore: prep translations app for continuous release
Browse files Browse the repository at this point in the history
    - 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
  • Loading branch information
d-rita committed Mar 1, 2024
1 parent fcbd6cb commit d578953
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/dhis2-verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions d2.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const config = {
id: 'c21c74de-eddb-428e-99cf-f9d6570edf6c',
type: 'app',
name: 'translations',
title: 'Translations',
Expand All @@ -7,6 +8,7 @@ const config = {
entryPoints: {
app: './src/App.js',
},
minDHIS2Version: 2.41,
}

module.exports = config
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "translations-app",
"version": "26.2.50",
"version": "99.9.9",
"description": "",
"license": "BSD-3-Clause",
"private": true,
Expand Down

0 comments on commit d578953

Please sign in to comment.