Skip to content

Commit

Permalink
moved all nested actions to global folder
Browse files Browse the repository at this point in the history
  • Loading branch information
crisconru committed May 2, 2024
1 parent 5a6d803 commit 59ec11a
Show file tree
Hide file tree
Showing 9 changed files with 191 additions and 98 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: publish
name: nmea-parser-nodered

on: push
on:
workflow_dispatch:
push:
paths:
- nmea-parser-nodered/**

jobs:
# test:
Expand All @@ -20,33 +24,36 @@ jobs:
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'

# - name: 📥 Install Dependencies
# run: npm install

# - name: 🧑‍🔬 Tests
# run: npm run test
# run: "npm run test:nmea-parser-nodered"

publish:
name: 🚀 Publish
runs-on: ubuntu-latest
# needs: test
if: github.ref == 'refs/heads/main'

steps:
- name: 👍 Checkout
uses: actions/checkout@v3

- name: ❇️ Setup node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: 📥 Install Dependencies
run: npm install


- name: 🛠️ Build
run: "npm run build:nmea-parser-nodered"

- name: 🚀 Publish to npm
run: npm publish --access public
run: "npm publish --access public --workspace=@coremarine/nmea-parser-parser"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: publish
name: nmea-parser

on:
workflow_dispatch:
push:
paths:
- nmea-parser/**

jobs:
test:
Expand All @@ -27,7 +29,7 @@ jobs:
run: npm install

- name: 🧑‍🔬 Tests
run: npm run test
run: "npm run test:nmea-parser"

publish:
name: 🚀 Publish
Expand All @@ -42,16 +44,16 @@ jobs:
- name: ❇️ Setup node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: 📥 Install Dependencies
run: npm install

- name: 🛠️ Build
run: npm run build
run: "npm run build:nmea-parser"

- name: 🚀 Publish to npm
run: npm publish --access public
run: "npm publish --access public --workspace=@coremarine/nmea-parser"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: publish
name: norsub-emru-nodered

on: push
on:
workflow_dispatch:
push:
paths:
- norsub-emru-nodered/**

jobs:
# test:
Expand All @@ -20,33 +24,36 @@ jobs:
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'

# - name: 📥 Install Dependencies
# run: npm install

# - name: 🧑‍🔬 Tests
# run: npm run test
# run: "npm run test:norsub-emru-nodered"

publish:
name: 🚀 Publish
runs-on: ubuntu-latest
# needs: test
if: github.ref == 'refs/heads/main'

steps:
- name: 👍 Checkout
uses: actions/checkout@v3

- name: ❇️ Setup node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: 📥 Install Dependencies
run: npm install


- name: 🛠️ Build
run: "npm run build:norsub-emru-nodered"

- name: 🚀 Publish to npm
run: npm publish --access public
run: "npm publish --access public --workspace=@coremarine/norsub-emru-parser"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: norsub-emru

name: publish

on: push
on:
workflow_dispatch:
push:
paths:
- norsub-emru/**

jobs:
test:
Expand All @@ -28,7 +29,7 @@ jobs:
run: npm install

- name: 🧑‍🔬 Tests
run: npm run test
run: "npm run test:norsub-emru"

publish:
name: 🚀 Publish
Expand All @@ -43,16 +44,16 @@ jobs:
- name: ❇️ Setup node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: 📥 Install Dependencies
run: npm install

- name: 🛠️ Build
run: npm run build
run: "npm run build:norsub-emru"

- name: 🚀 Publish to npm
run: npm publish --access public
run: "npm publish --access public --workspace=@coremarine/norsub-emru"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59 changes: 59 additions & 0 deletions .github/workflows/septentrio-sbf-nodered.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: septentrio-sbf-nodered

on:
workflow_dispatch:
push:
paths:
- septentrio-sbf-nodered/**

jobs:
# test:
# name: 🧪 Test
# runs-on: ubuntu-latest

# strategy:
# matrix:
# node-version: [18.x, 20.x]

# steps:
# - name: 👍 Checkout
# uses: actions/checkout@v3

# - name: ❇️ Setup node.js
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'

# - name: 📥 Install Dependencies
# run: npm install

# - name: 🧑‍🔬 Tests
# run: "npm run test:septentrio-sbf-nodered"

publish:
name: 🚀 Publish
runs-on: ubuntu-latest
# needs: test
if: github.ref == 'refs/heads/main'

steps:
- name: 👍 Checkout
uses: actions/checkout@v3

- name: ❇️ Setup node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: 📥 Install Dependencies
run: npm install

- name: 🛠️ Build
run: "npm run build:septentrio-sbf-nodered"

- name: 🚀 Publish to npm
run: "npm publish --access public --workspace=@coremarine/septentrio-sbf-parser"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: septentrio-sbf

name: publish

on: push
on:
workflow_dispatch:
push:
paths:
- septentrio-sbf/**

jobs:
test:
Expand All @@ -28,7 +29,7 @@ jobs:
run: npm install

- name: 🧑‍🔬 Tests
run: npm run test
run: "npm run test:septentrio-sbf"

publish:
name: 🚀 Publish
Expand All @@ -43,16 +44,16 @@ jobs:
- name: ❇️ Setup node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: 📥 Install Dependencies
run: npm install

- name: 🛠️ Build
run: npm run build
run: "npm run build:septentrio-sbf"

- name: 🚀 Publish to npm
run: npm publish --access public
run: "npm publish --access public --workspace=@coremarine/septentrio-sbf"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59 changes: 59 additions & 0 deletions .github/workflows/thelmabiotel-tblive-nodered.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: thelmabiotel-tblive-nodered

on:
workflow_dispatch:
push:
paths:
- thelmabiotel-tblive-nodered/**

jobs:
# test:
# name: 🧪 Test
# runs-on: ubuntu-latest

# strategy:
# matrix:
# node-version: [18.x, 20.x]

# steps:
# - name: 👍 Checkout
# uses: actions/checkout@v3

# - name: ❇️ Setup node.js
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'

# - name: 📥 Install Dependencies
# run: npm install

# - name: 🧑‍🔬 Tests
# run: "npm run test:thelmabiotel-tblive-nodered"

publish:
name: 🚀 Publish
runs-on: ubuntu-latest
# needs: test
if: github.ref == 'refs/heads/main'

steps:
- name: 👍 Checkout
uses: actions/checkout@v3

- name: ❇️ Setup node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: 📥 Install Dependencies
run: npm install

- name: 🛠️ Build
run: "npm run build:thelmabiotel-tblive-nodered"

- name: 🚀 Publish to npm
run: "npm publish --access public --workspace=@coremarine/thelmabiotel-tblive-parser"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 59ec11a

Please sign in to comment.