Skip to content

Commit

Permalink
packaging updates (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson authored May 23, 2022
1 parent d07a29a commit 56f3eec
Show file tree
Hide file tree
Showing 10 changed files with 70 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
engines:
eslint:
enabled: true
channel: "eslint-6"
channel: "eslint-8"
config:
config: ".eslintrc.yaml"

Expand Down
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ env:
node: true
es6: true
mocha: true
es2020: true

plugins:
- haraka
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Tests

on: [ push ]

env:
CI: true

jobs:

ci-test:
Expand All @@ -10,23 +13,16 @@ jobs:

strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
node-version:
- 10
- 12
- 14
os: [ ubuntu-latest, windows-latest ]
node-version: [ 14, 16, 18 ]
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm test
env:
CI: true
4 changes: 2 additions & 2 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
steps:

- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '12'
node-version: 16

- name: Install
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Lint

on: [ push ]

env:
CI: true

jobs:

lint:
Expand All @@ -10,17 +13,14 @@ jobs:

strategy:
matrix:
node-version:
- '12'
node-version: [ 16 ]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
name: Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm run lint
env:
CI: true
41 changes: 41 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

name: publish

on:
push:
branches:
- master

env:
CI: true
node_version: 16

jobs:

publish-npm:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup node.js ${{ env.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}
registry-url: https://registry.npmjs.org/

- run: npm install

- run: npm run test

- name: publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: GitHub Release
uses: justincy/[email protected]
id: release
51 changes: 0 additions & 51 deletions .github/workflows/publish.yml

This file was deleted.

1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ appveyor.yml
.nyc_output
coverage
.codeclimate.yml
codecov.yml
13 changes: 10 additions & 3 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@

# 1.0.1 - 2021-02-04

### 1.0.2 - 2022-05-23

- packaging updates


### 1.0.1 - 2021-02-04

- added example tests that set up conn/txn
- add automated package publishing
- GH actions: consolidate *nix & win tests
- GH actions: consolidate \*nix & win tests


# 1.0.0 - 2017-02-02
### 1.0.0 - 2017-02-02

- initial release
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haraka-plugin-template",
"version": "1.0.1",
"version": "1.0.2",
"description": "Haraka plugin that frobnicates email connections",
"main": "index.js",
"scripts": {
Expand All @@ -25,9 +25,9 @@
},
"homepage": "https://github.com/haraka/haraka-plugin-template#readme",
"devDependencies": {
"eslint": "*",
"eslint": "8",
"eslint-plugin-haraka": "*",
"haraka-test-fixtures": "*",
"mocha": "*"
"mocha": "9"
}
}

0 comments on commit 56f3eec

Please sign in to comment.