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..43ec434 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release + +on: + push: + tags: + - '*' + +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: Set package version + run: npm version ${{ github.ref_name }} --no-git-tag-version + + - name: Publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + access: public 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 70e189a..dc88630 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,9 @@ { "name": "@sailpoint/connector-sdk", - "private": true, "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"