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
20 changes: 1 addition & 19 deletions .github/workflows/jsonata.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Build and publish JSONata
name: Build JSONata
on:
push:
branches: [ master, v1 ]
pull_request:
branches: [ master, v1 ]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -22,21 +19,6 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
publish:
needs: build
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.repository == 'jsonata-js/jsonata' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 24.x
uses: actions/setup-node@v3
with:
node-version: 24.x
- name: Install and build
run: npm install && npm test
- name: Publish to NPM
run: npm publish
documentation:
needs: build
runs-on: ubuntu-latest
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish JSONata

on:
push:
tags:
- 'v*'

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false # never use caching in release builds
- name: Install and build
run: npm install && npm test
- name: Publish to NPM
run: npm publish
Loading