Skip to content

chore: make some changes to test the build #4

chore: make some changes to test the build

chore: make some changes to test the build #4

name: Copy build to d2-ci
on:
push:
branches-ignore:
- master
env:
GIT_AUTHOR_NAME: '@dhis2-bot'
GIT_AUTHOR_EMAIL: '[email protected]'
GIT_COMMITTER_NAME: '@dhis2-bot'
GIT_COMMITTER_EMAIL: '[email protected]'
NPM_TOKEN: ${{secrets.DHIS2_BOT_NPM_TOKEN}}
GH_TOKEN: ${{secrets.DHIS2_BOT_GITHUB_TOKEN}}
jobs:
copy-to-d2-ci:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{env.GH_TOKEN}}
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build package
run: yarn build
- name: Pack and unpack the build
run: yarn pack --filename output.tgz && tar -xzf output.tgz
- name: Copy package to d2-ci
uses: dhis2/deploy-build@master
with:
github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}