diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7c3f13d..60e066d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: | @@ -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 diff --git a/package.json b/package.json index 9975ca0..6e7c1a9 100644 --- a/package.json +++ b/package.json @@ -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",