Skip to content

Commit

Permalink
ci: only publish when package.json changes
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jul 7, 2022
1 parent 3d0ee02 commit dcf5aa5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 27 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,6 @@ jobs:
# uses: haraka/.github/.github/workflows/coverage.yml@master
# secrets: inherit

test:
needs: [ lint, get-lts ]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
fail-fast: false
steps:
- uses: actions/checkout@v3
- 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

get-lts:
runs-on: ubuntu-latest
steps:
- id: get
uses: msimerson/node-lts-versions@v1
outputs:
active: ${{ steps.get.outputs.active }}
lts: ${{ steps.get.outputs.lts }}
ubuntu:
needs: [ lint ]
uses: haraka/.github/.github/workflows/ubuntu.yml@master
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master
paths:
- package.json

env:
CI: true
Expand Down
2 changes: 1 addition & 1 deletion .release
Submodule .release updated 4 files
+5 −1 CHANGELOG.md
+2 −0 README.md
+4 −1 finish.sh
+2 −2 submit.sh
8 changes: 8 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
### Unreleased


### [1.0.8] - 2022-07-07

- ci: use .github test workflow
- ci: only publish when package.json changes
- Added systemd.service file (#25)


### [1.0.7] - 2022-06-05

- ci: update GHA workflow with shared
Expand Down Expand Up @@ -46,3 +53,4 @@


[1.0.7]: https://github.com/haraka/haraka-plugin-p0f/releases/tag/1.0.7
[1.0.8]: https://github.com/haraka/haraka-plugin-p0f/releases/tag/1.0.8
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haraka-plugin-p0f",
"version": "1.0.7",
"version": "1.0.8",
"description": "Haraka plugin that adds TCP fingerprinting",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit dcf5aa5

Please sign in to comment.