Skip to content

Commit

Permalink
Merge pull request #62 from CudoVentures/cudos-dev
Browse files Browse the repository at this point in the history
First NPM Release 28.02.2022
  • Loading branch information
maptuhec authored Feb 28, 2022
2 parents 22dee0a + c60d1af commit 52c4621
Show file tree
Hide file tree
Showing 78 changed files with 11,982 additions and 2,187 deletions.
1 change: 0 additions & 1 deletion .docker_env

This file was deleted.

28 changes: 28 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"standard"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": [
"*.test.js",
"**/template/scripts/**"
],
"rules": {
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"object-curly-spacing": ["error", "always"]
}
}
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js Publish CI
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm install
# Publish to npm
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: pull_request
name: Run tests

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Clone repository and checkout branch
- uses: actions/setup-node@v2
name: Setup node.js
with:
node-version: 16
- run: npm install && npm install -g
name: Install dependencies
- run: npm run test
name: Run tests
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
node_modules/
.idea/
cudos_data/
.vscode
template/**/artifacts/
cudos_data/node/config/app.toml
cudos_data/node/config/config.toml
**/.DS_Store
Loading

0 comments on commit 52c4621

Please sign in to comment.