Skip to content

Commit

Permalink
chore: update node engine to >= 10
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Require Node version 10 or above.
  • Loading branch information
varl committed Apr 2, 2020
1 parent c7e7345 commit bb45181
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 24 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/node-lint.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
name: 'DHIS2: Style'
name: 'dhis2: lint (node)'

on:
push:
branches:
- master
pull_request:
on: push

jobs:
pr:
name: Lint
check:
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
Expand Down
34 changes: 20 additions & 14 deletions .github/workflows/node-publish.yml
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
Expand All @@ -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
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}

0 comments on commit bb45181

Please sign in to comment.