Skip to content
This repository was archived by the owner on Sep 29, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- master
- 'release/**'
pull_request:
branches:
- master
- 'release/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Configure JFrog Artifactory
run: |
echo "registry=${{ secrets.JFROG_ARTIFACTORY_NPM_VIRTUAL_URL }}" >> .npmrc
echo "_auth=${{ secrets.JFROG_ARTIFACTORY_PLATFORM_UI_NPM_AUTH }}" >> .npmrc
echo "always-auth=true" >> .npmrc

- name: yarn install
run: yarn install
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish

on:
push:
# tags: '*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Configure JFrog Artifactory
run: |
echo "registry=${{ secrets.JFROG_ARTIFACTORY_NPM_VIRTUAL_URL }}" >> .npmrc
echo "_auth=${{ secrets.JFROG_ARTIFACTORY_PLATFORM_UI_NPM_AUTH }}" >> .npmrc
echo "always-auth=true" >> .npmrc

- run: yarn install --immutable

# - name: match-tag-to-package-version
# id: match-version
# uses: geritol/match-tag-to-package-version@0.2.0
# with:
# TAG_PREFIX: v

- name: Configure JFrog Artifactory (Publish)
run: |
sed -i "s/registry: .*//g" .npmrc
echo "registry=${{ secrets.JFROG_ARTIFACTORY_PLATFORM_UI_URL }}" >> .npmrc

- name: Publish package
#if: steps.match-version.PACKAGE_VERSION == steps.match-version.TAG_VERSION
run: yarn publish
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ build/Release
node_modules

# Users Environment Variables
.lock-wscript
.lock-wscript
Loading