From ff952a5cb1e2a3e5dd23bc2ed6d53f221b58b26b Mon Sep 17 00:00:00 2001
From: Inspired Technologies
<65895244+inspired-technologies@users.noreply.github.com>
Date: Tue, 16 Feb 2021 01:48:24 +0100
Subject: [PATCH 1/7] Update README.md
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 4cbf2b6..1bcec91 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,8 @@ Note: Alerts from openweathermap.org currently not implemented as based on
-The plugin shall adhere to meta-data units accoring to the SignalK definition.
+The plugin shall adhere to meta-data units according to the SignalK definition.
From 73128d2cc0216d8f4e14a401a2ea7a817effda8a Mon Sep 17 00:00:00 2001
From: Inspired Technologies
<65895244+inspired-technologies@users.noreply.github.com>
Date: Sun, 21 Feb 2021 17:44:00 +0100
Subject: [PATCH 3/7] CI: Release to NPM
---
.npmrc | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 .npmrc
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 0000000..00ecb98
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1,4 @@
+#vscode
+.vscode
+#github
+.github
From e19daade8f3197341b5ee7fe12a48744a722dd8d Mon Sep 17 00:00:00 2001
From: Inspired Technologies
<65895244+inspired-technologies@users.noreply.github.com>
Date: Sun, 21 Feb 2021 17:45:10 +0100
Subject: [PATCH 4/7] CI: Release to NPM
---
.npmrc => .npmignore | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename .npmrc => .npmignore (100%)
diff --git a/.npmrc b/.npmignore
similarity index 100%
rename from .npmrc
rename to .npmignore
From ecaf8c446726b717d7e0cff3b9042b4db49ed619 Mon Sep 17 00:00:00 2001
From: Inspired Technologies
<65895244+inspired-technologies@users.noreply.github.com>
Date: Sun, 21 Feb 2021 17:47:42 +0100
Subject: [PATCH 5/7] # NPM Release name: npm-release # Controls when the
action will run. on: # Triggers the workflow on push or pull request
events but only for the main branch push: branches: [ main ] #
Allows you to run this workflow manually from the Actions tab
workflow_dispatch: jobs: publish: name: Check release to NPM
runs-on: ubuntu-latest steps: - name: Checkout code uses:
actions/checkout@v2 - name: Check if version has been updated
id: check uses: EndBug/version-check@v1 with:
file-url: https://unpkg.com/...@latest/package.json
static-checking: localIsNew - name: Log when unchanged if:
steps.check.outputs.changed == 'false' run: 'echo "Non release
change"' - name: Log when changed if:
steps.check.outputs.changed == 'true' run: 'echo "Version changed
commit ${{ steps.check.outputs.commit }}! New version: ${{
steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'
- name: Create Release if: steps.check.outputs.changed == 'true'
uses: actions/create-release@v1 env: GITHUB_TOKEN:
${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not
need to create your own token with: tag_name: ${{
steps.check.outputs.version }} release_name:
---
.github/workflows/npm-release.yml | 61 +++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
create mode 100644 .github/workflows/npm-release.yml
diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml
new file mode 100644
index 0000000..efa9d61
--- /dev/null
+++ b/.github/workflows/npm-release.yml
@@ -0,0 +1,61 @@
+# NPM Release
+name: npm-release
+
+# Controls when the action will run.
+on:
+ # Triggers the workflow on push or pull request events but only for the main branch
+ push:
+ branches: [ main ]
+
+jobs:
+ publish:
+ name: Check release to NPM
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Check if version has been updated
+ id: check
+ uses: EndBug/version-check@v1
+ with:
+ file-url: https://unpkg.com/openweather-signalk@latest/package.json
+ static-checking: localIsNew
+
+ - name: Log when unchanged
+ if: steps.check.outputs.changed == 'false'
+ run: 'echo "Non release change"'
+
+ - name: Log when changed
+ if: steps.check.outputs.changed == 'true'
+ run: 'echo "Version changed commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'
+
+ - name: Create Release
+ if: steps.check.outputs.changed == 'true'
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
+ with:
+ tag_name: ${{ steps.check.outputs.version }}
+ release_name: Release ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})
+ body: |
+ New release to NPM
+ - Tagged to ${{ steps.check.outputs.version }}
+ - Release ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})
+ draft: false
+ prerelease: false
+
+ - name: Setup Node
+ if: steps.check.outputs.changed == 'true'
+ uses: actions/setup-node@v1
+ with:
+ node-version: 14
+ registry-url: https://registry.npmjs.org/
+ - name: Install Package
+ if: steps.check.outputs.changed == 'true'
+ run: yarn install
+ - name: Publish Package
+ if: steps.check.outputs.changed == 'true'
+ run: npm publish --access public
+ env:
+ NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
From 8756cae64d42d6b4c595be5c7c31b25b5a50642b Mon Sep 17 00:00:00 2001
From: Inspired Technologies
<65895244+inspired-technologies@users.noreply.github.com>
Date: Sun, 21 Feb 2021 17:54:43 +0100
Subject: [PATCH 6/7] Initial Package Release
---
.github/workflows/npm-release.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml
index efa9d61..2888c51 100644
--- a/.github/workflows/npm-release.yml
+++ b/.github/workflows/npm-release.yml
@@ -19,7 +19,7 @@ jobs:
id: check
uses: EndBug/version-check@v1
with:
- file-url: https://unpkg.com/openweather-signalk@latest/package.json
+ file-url: https://unpkg.com/@signalk/simple-gpx@latest/package.json
static-checking: localIsNew
- name: Log when unchanged
From 1e27d3b86447c3e5708afe215f9a37fd8f3e7e85 Mon Sep 17 00:00:00 2001
From: Inspired Technologies
<65895244+inspired-technologies@users.noreply.github.com>
Date: Sun, 21 Feb 2021 18:02:06 +0100
Subject: [PATCH 7/7] CI: Release to NPM
---
.github/workflows/npm-release.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml
index 2888c51..efa9d61 100644
--- a/.github/workflows/npm-release.yml
+++ b/.github/workflows/npm-release.yml
@@ -19,7 +19,7 @@ jobs:
id: check
uses: EndBug/version-check@v1
with:
- file-url: https://unpkg.com/@signalk/simple-gpx@latest/package.json
+ file-url: https://unpkg.com/openweather-signalk@latest/package.json
static-checking: localIsNew
- name: Log when unchanged