mirror of
https://github.com/valitydev/magista-proto.git
synced 2024-11-06 08:25:16 +00:00
IMP-23: Publish to NPM (#12)
This commit is contained in:
parent
62c2e5081e
commit
c2cb538306
26
.github/workflows/frontend-pr.yml
vendored
Normal file
26
.github/workflows/frontend-pr.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: Frontend PR Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Init NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16.13.2'
|
||||
cache: 'npm'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Init Thrift
|
||||
uses: valitydev/action-setup-thrift@v1.0.0
|
||||
- name: Install Packages
|
||||
run: npm ci
|
||||
- name: Build
|
||||
run: npm run codegen
|
31
.github/workflows/frontend-publish.yml
vendored
Normal file
31
.github/workflows/frontend-publish.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Frontend Build & Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build & Publish
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Init NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16.13.2'
|
||||
cache: 'npm'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Init Thrift
|
||||
uses: valitydev/action-setup-thrift@v1.0.0
|
||||
- name: Install Packages
|
||||
run: npm ci
|
||||
- name: Build
|
||||
run: npm run codegen
|
||||
- name: Version Up
|
||||
run: npm version prerelease --preid ${GITHUB_SHA::7} --no-git-tag-version
|
||||
- name: Publish NPM
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -79,3 +79,7 @@ fabric.properties
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
env.list
|
||||
|
||||
# frontend
|
||||
node_modules
|
||||
lib
|
||||
|
1701
package-lock.json
generated
Normal file
1701
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -1,10 +1,22 @@
|
||||
{
|
||||
"name": "@vality/magista-proto",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"codegen": "thrift-codegen"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/valitydev/magista-proto.git"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"homepage": "https://github.com/valitydev/magista-proto#readme"
|
||||
"homepage": "https://github.com/valitydev/magista-proto#readme",
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"main": "./lib/magista.ts",
|
||||
"devDependencies": {
|
||||
"@vality/payout-manager-proto": "github:valitydev/payout-manager-proto#3d7e1c5e69a186c263d00b567ea49255905bce06",
|
||||
"@vality/thrift-codegen": "^0.1.1-d5dc8ef.0",
|
||||
"damsel": "github:valitydev/damsel#df1c52f2ebe175fabe1da4aec8ac889b2dd03a0b"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user