From 68a696c5a8767258f112534c57caf978df893033 Mon Sep 17 00:00:00 2001 From: fangming-ning-sp <42616890+fangming-ning-sp@users.noreply.github.com> Date: Mon, 27 Feb 2023 12:43:28 -0600 Subject: [PATCH 1/7] PLTCONN-1789: Release workflow --- .github/workflows/prb.yml | 16 ++++++++++------ .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/prb.yml b/.github/workflows/prb.yml index cc42b66..0633c8e 100644 --- a/.github/workflows/prb.yml +++ b/.github/workflows/prb.yml @@ -15,9 +15,13 @@ jobs: node-version: [ '16' ] steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci && npm test + - name: Checkout + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Run tests + run: npm ci && npm test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..10bed7a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Release + +on: + push: + tags: + - '*' + pull_request: + branches: [ main ] + +jobs: + release: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ '16' ] + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Run tests + run: npm ci && npm test + + - name: Publish to NPM + run: npm publish + env: + GITHUB_TOKEN: ${{ secrets.NPM_TOKEN }} From a2dc609af638dbf425cf0b83f6bbd93f1263c311 Mon Sep 17 00:00:00 2001 From: fangming-ning-sp <42616890+fangming-ning-sp@users.noreply.github.com> Date: Mon, 27 Feb 2023 12:46:13 -0600 Subject: [PATCH 2/7] PLTCONN-1789: Reset version for initial testing --- .github/workflows/release.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10bed7a..940ea0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,6 @@ jobs: run: npm ci && npm test - name: Publish to NPM - run: npm publish + run: npm publish --access public env: GITHUB_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 70e189a..d1d5ca7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@sailpoint/connector-sdk", "private": true, - "version": "0.1.0", + "version": "0.0.1", "description": "JavaScript framework to build SailPoint Connectors", "author": "SailPoint Technologies, Inc.", "license": "Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved.", From 82caa7d286331d33f26c1e20c41171ec09d1cdc8 Mon Sep 17 00:00:00 2001 From: fangming-ning-sp <42616890+fangming-ning-sp@users.noreply.github.com> Date: Tue, 28 Feb 2023 12:54:31 -0600 Subject: [PATCH 3/7] PLTCONN-1789: Remove the private flag --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index d1d5ca7..e362873 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "name": "@sailpoint/connector-sdk", - "private": true, "version": "0.0.1", "description": "JavaScript framework to build SailPoint Connectors", "author": "SailPoint Technologies, Inc.", From 15bb15ea10ff21424c2272713c4223dee9f2ab44 Mon Sep 17 00:00:00 2001 From: fangming-ning-sp <42616890+fangming-ning-sp@users.noreply.github.com> Date: Tue, 28 Feb 2023 12:56:22 -0600 Subject: [PATCH 4/7] PLTCONN-1789: Fix env var name --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 940ea0e..4a6e5c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,4 +30,4 @@ jobs: - name: Publish to NPM run: npm publish --access public env: - GITHUB_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 19d15ce90a2ed458e3f2ae9044b2ba2cb2f1cb60 Mon Sep 17 00:00:00 2001 From: fangming-ning-sp <42616890+fangming-ning-sp@users.noreply.github.com> Date: Tue, 28 Feb 2023 13:03:11 -0600 Subject: [PATCH 5/7] PLTCONN-1789: Use npm publish tool --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a6e5c2..1638b95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,7 @@ jobs: run: npm ci && npm test - name: Publish to NPM - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./package.json From 5db5b4e3f31591ab7faeb63f486072a4ffa1cd2d Mon Sep 17 00:00:00 2001 From: fangming-ning-sp <42616890+fangming-ning-sp@users.noreply.github.com> Date: Tue, 28 Feb 2023 13:05:22 -0600 Subject: [PATCH 6/7] PLTCONN-1789: Set access to public --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1638b95..73beb9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,4 +31,4 @@ jobs: uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_TOKEN }} - package: ./package.json + access: public From ec12216dde7211eeaa3150a2be0c9212a78cc6d2 Mon Sep 17 00:00:00 2001 From: fangming-ning-sp <42616890+fangming-ning-sp@users.noreply.github.com> Date: Tue, 28 Feb 2023 14:23:19 -0600 Subject: [PATCH 7/7] PLTCONN-1789: Use github version as final release version --- .github/workflows/release.yml | 5 +++-- package-lock.json | 2 +- package.json | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73beb9f..43ec434 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,6 @@ on: push: tags: - '*' - pull_request: - branches: [ main ] jobs: release: @@ -27,6 +25,9 @@ jobs: - name: Run tests run: npm ci && npm test + - name: Set package version + run: npm version ${{ github.ref_name }} --no-git-tag-version + - name: Publish to NPM uses: JS-DevTools/npm-publish@v1 with: diff --git a/package-lock.json b/package-lock.json index 1628356..587d716 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,7 @@ "": { "name": "@sailpoint/connector-sdk", "version": "0.1.0", - "license": "Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved.", + "license": "Copyright (c) 2023. SailPoint Technologies, Inc. All rights reserved.", "dependencies": { "archiver": "^5.3.1", "express": "^4.17.1", diff --git a/package.json b/package.json index e362873..dc88630 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "@sailpoint/connector-sdk", - "version": "0.0.1", + "version": "0.1.0", "description": "JavaScript framework to build SailPoint Connectors", "author": "SailPoint Technologies, Inc.", - "license": "Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved.", + "license": "Copyright (c) 2023. SailPoint Technologies, Inc. All rights reserved.", "keywords": [ "sailpoint", "connector"