From ca4790ff9bcbd5c9e725a4da2babaa25522f84ea Mon Sep 17 00:00:00 2001 From: Adam Lipson Date: Fri, 10 May 2024 13:32:57 -0400 Subject: [PATCH 1/4] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0d82b66..4fd955d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ibm-segment", - "version": "1.1.5", + "version": "1.1.7", "type": "module", "description": "", "main": "dist/index.js", From 0d7a7e0d26e5d8f6e42f5aafc0bb2cbc2e1e076c Mon Sep 17 00:00:00 2001 From: Adam Lipson Date: Fri, 10 May 2024 13:35:11 -0400 Subject: [PATCH 2/4] Update npm-publish.yaml --- .github/workflows/npm-publish.yaml | 40 ++++++++++++++++-------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index 46318af..8f54833 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -1,30 +1,34 @@ -name: Publish Package to npm +name: Publish ibm-segment on: push: - tags: - - 'v*' + branches: + - github-actions jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + persist-credentials: true - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - registry-url: 'https://registry.npmjs.org/' + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: "18.x" + registry-url: "https://registry.npmjs.org" - - name: Install dependencies - run: npm ci + - run: npm ci - - name: Build - run: npm run build + # increment the patch version and commit the change + - name: Bump version and push + run: | + git config user.name github-actions + git config user.email github-actions@github.com + npm version patch -m "chore: bump version to %s" + git push - - name: Publish to npm - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 49e331adf3ec84e23aada64f61141a75be0a6fc7 Mon Sep 17 00:00:00 2001 From: Adam Lipson Date: Fri, 10 May 2024 13:36:47 -0400 Subject: [PATCH 3/4] Update npm-publish.yaml --- .github/workflows/npm-publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index 8f54833..565dfe0 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -9,7 +9,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: persist-credentials: true From 5143b9b822ce14ffe031bf5b6423e6273dddb150 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 10 May 2024 17:37:04 +0000 Subject: [PATCH 4/4] chore: bump version to 1.1.8 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0d684b1..645a2e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ibm-segment", - "version": "1.1.5", + "version": "1.1.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ibm-segment", - "version": "1.1.5", + "version": "1.1.8", "license": "ISC", "dependencies": { "@tsconfig/node14": "^14.1.0", diff --git a/package.json b/package.json index 4fd955d..ff485f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ibm-segment", - "version": "1.1.7", + "version": "1.1.8", "type": "module", "description": "", "main": "dist/index.js",