Skip to content

Commit

Permalink
Merge pull request #19 from sailpoint-oss/fning/PLTCONN-1789
Browse files Browse the repository at this point in the history
PLTCONN-1789: Publish to NPM
  • Loading branch information
fangming-ning-sp authored Feb 28, 2023
2 parents 4c96dd8 + ec12216 commit 233070f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 9 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/prb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 233070f

Please sign in to comment.