Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/core-publish.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/core-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js 22 (for build)
- name: Use Node.js 24 (for build)
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
cache: 'npm'
- run: npm ci -w packages/json-csv-node -w packages/json-csv-core
- run: npm run build
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/legacy-publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/legacy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/node-publish.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/node-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js 22 (for build)
- name: Use Node.js 24 (for build)
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
cache: 'npm'
- run: npm ci -w packages/json-csv-node -w packages/json-csv-core
- run: npm run build
Expand All @@ -33,15 +33,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x, 22.x]
node-version: [14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js 22 (for build)
- name: Use Node.js 24 (for build)
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
cache: 'npm'
- run: npm ci -w packages/json-csv-node -w packages/json-csv-core
- run: npm run build
Expand Down
40 changes: 35 additions & 5 deletions .github/workflows/push-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,40 @@ on:
- 'packages/json-csv-core/**'

jobs:
test:
tests:
uses: ./.github/workflows/core-test.yaml
version-and-publish:
needs: test
version:
needs: tests
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: ./.github/workflows/core-publish.yaml
secrets: inherit
concurrency:
group: 'versioning-automation'
cancel-in-progress: false
uses: iwsllc/workflows/.github/workflows/version-as-app.yaml@main
with:
ref: ${{ github.ref_name }}
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: npm
scope: '@iwsio'
version-command: npm version patch -w packages/json-csv-core
version-workspace: packages/json-csv-core
tag-includes-name: true
secrets:
IWS_VERSION_BOT_PK: ${{ secrets.IWS_VERSION_BOT_PK}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish:
needs: version
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/publish.yaml@v2
with:
ref: ${{ github.ref_name }}
registry-url: 'https://registry.npmjs.org'
cache: npm
node-version-file: '.nvmrc'
scope: '@iwsio'
install-command: npm ci
build-command: npm run build -w packages/json-csv-core
publish-command: npm publish -w packages/json-csv-core --access public
secrets:
# This token is used for reading npm packages; use when private packages are used
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39 changes: 34 additions & 5 deletions .github/workflows/push-json-csv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,40 @@ on:
branches: [ json-csv ]

jobs:
test:
tests:
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: ./.github/workflows/legacy-test.yml
version-and-publish:
needs: test
version:
needs: tests
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: ./.github/workflows/legacy-publish.yml
secrets: inherit
concurrency:
group: 'versioning-automation'
cancel-in-progress: false
uses: iwsllc/workflows/.github/workflows/version-as-app.yaml@main
with:
ref: ${{ github.ref_name }}
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: npm
scope: '@iwsio'
version-command: npm version patch
tag-includes-name: true
secrets:
IWS_VERSION_BOT_PK: ${{ secrets.IWS_VERSION_BOT_PK}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish:
needs: version
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/publish.yaml@v2
with:
ref: ${{ github.ref_name }}
registry-url: 'https://registry.npmjs.org'
cache: npm
node-version-file: '.nvmrc'
scope: '@iwsio'
install-command: ""
build-command: ""
publish-command: npm publish --access public
secrets:
# This token is used for reading npm packages; use when private packages are used
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40 changes: 35 additions & 5 deletions .github/workflows/push-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,40 @@ on:
- 'packages/json-csv-node/**'

jobs:
test:
tests:
uses: ./.github/workflows/node-test.yaml
version-and-publish:
needs: test
version:
needs: tests
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: ./.github/workflows/node-publish.yaml
secrets: inherit
concurrency:
group: 'versioning-automation'
cancel-in-progress: false
uses: iwsllc/workflows/.github/workflows/version-as-app.yaml@main
with:
ref: ${{ github.ref_name }}
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: npm
scope: '@iwsio'
version-command: npm version patch -w packages/json-csv-node
version-workspace: packages/json-csv-node
tag-includes-name: true
secrets:
IWS_VERSION_BOT_PK: ${{ secrets.IWS_VERSION_BOT_PK}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish:
needs: version
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/publish.yaml@v2
with:
ref: ${{ github.ref_name }}
registry-url: 'https://registry.npmjs.org'
cache: npm
node-version-file: '.nvmrc'
scope: '@iwsio'
install-command: npm ci
build-command: npm run build -w packages/json-csv-node
publish-command: npm publish -w packages/json-csv-node --access public
secrets:
# This token is used for reading npm packages; use when private packages are used
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22
24
Loading