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: 10 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@ on:
- 'minor'
- 'major'
default: 'patch'
permissions:
id-token: write # Required for OIDC
contents: read

jobs:
publish-on-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: https://registry.npmjs.org/
node-version: '24'
registry-url: 'https://registry.npmjs.org'

- name: Versionate
run: |
Expand All @@ -40,12 +43,9 @@ jobs:
- name: Build
run: npm ci


- name: Publish npm
id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_PUBLISH }}
- name: Publish to NPM
# This command uses the GitHub OIDC token automatically
run: npm publish

- name: Create PR
uses: peter-evans/create-pull-request@v4.2.3
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "liveperson-functions-client",
"version": "2.0.4",
"version": "2.0.5",
"description": "JavaScript client for LivePerson Functions.",
"author": {
"name": "LivePersonInc",
"email": "faas-lp@liveperson.com"
},
"repository": {
"type": "git",
"url": "https://github.com/LivePersonInc/faas-client-node.git"
},
"license": "MIT",
"scripts": {
"check": "gts check",
Expand Down