-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 1.03 KB
/
node-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 'DHIS2 Build and Release'
on:
push:
branches:
- master
jobs:
process:
name: Release
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install
run: yarn install --frozen-lockfile
- name: Test
run: yarn test
- name: Build
run: yarn build
- name: Publish
run: npx @dhis2/cli-utils release --publish npm
env:
GIT_AUTHOR_NAME: '@dhis2-bot'
GIT_AUTHOR_EMAIL: 'apps@dhis2.org'
GIT_COMMITTER_NAME: '@dhis2-bot'
GIT_COMMITTER_EMAIL: 'apps@dhis2.org'
NPM_TOKEN: ${{secrets.DHIS2_BOT_NPM_TOKEN}}
GH_TOKEN: ${{secrets.DHIS2_BOT_GITHUB_TOKEN}}
env:
CI: true