-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Require Node version 10 or above.
- Loading branch information
Showing
3 changed files
with
30 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
name: 'DHIS2: Release' | ||
name: 'dhis2: publish (node)' | ||
|
||
on: | ||
push: | ||
branches: | ||
# match branches in: | ||
# https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches | ||
- master | ||
- next | ||
- next-major | ||
- alpha | ||
- beta | ||
- '[0-9]+.x' | ||
- '[0-9]+.x.x' | ||
- '[0-9]+.[0-9]+.x' | ||
|
||
env: | ||
GIT_AUTHOR_NAME: '@dhis2-bot' | ||
GIT_AUTHOR_EMAIL: '[email protected]' | ||
GIT_COMMITTER_NAME: '@dhis2-bot' | ||
GIT_COMMITTER_EMAIL: '[email protected]' | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
GH_TOKEN: ${{secrets.GH_TOKEN}} | ||
|
||
jobs: | ||
process: | ||
name: Publish | ||
publish: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
@@ -22,17 +38,7 @@ jobs: | |
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Publish to NPM | ||
run: npx @dhis2/cli-utils release --publish npm | ||
env: | ||
GIT_AUTHOR_NAME: '@dhis2-bot' | ||
GIT_AUTHOR_EMAIL: '[email protected]' | ||
GIT_COMMITTER_NAME: '@dhis2-bot' | ||
GIT_COMMITTER_EMAIL: '[email protected]' | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
GH_TOKEN: ${{secrets.GH_TOKEN}} | ||
env: | ||
CI: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
"author": "Viktor Varland <[email protected]>", | ||
"license": "BSD-3-Clause", | ||
"private": false, | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"scripts": { | ||
"lint": "yarn lint:js && yarn lint:text", | ||
"lint:js": "d2-style js check", | ||
|
@@ -34,6 +37,8 @@ | |
}, | ||
"devDependencies": { | ||
"@dhis2/cli-style": "^6.0.0", | ||
"@dhis2/cli-utils-docsite": "^1.3.0" | ||
"@dhis2/cli-utils-docsite": "^1.3.0", | ||
"concurrently": "^5.1.0", | ||
"wait-on": "^4.0.0" | ||
} | ||
} |