Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Merge #244
Browse files Browse the repository at this point in the history
244: Add npm check and release r=D4nte a=D4nte

Resolves #198 

Co-authored-by: Franck Royer <franck@coblox.tech>
  • Loading branch information
bors[bot] and Franck Royer authored Dec 2, 2019
2 parents 3e9334b + 36664c9 commit 9e9c121
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,17 @@ jobs:

- name: Run e2e tests
run: make e2e_scripts
npm_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: yarn install and test
run: |
cd .npm
yarn install
yarn list
yarn test
22 changes: 22 additions & 0 deletions .github/workflows/release-bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,25 @@ jobs:
files: create-comit-app_*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
npm_build:
name: NPM Project
runs-on: ubuntu-latest
needs: build # Do not publish if the build failed
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Build
run: |
cd .npm
yarn install
yarn list
- name: Release on NPM
if: startsWith(github.ref, 'refs/tags/')
run: |
cd .npm
yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "cca.js",
"scripts": {
"start": "node cca.js",
"fix": "prettier --write '**/*.{ts,js,json,yml}'"
"fix": "prettier --write '**/*.{ts,js,json,yml}'",
"test": "prettier --check '**/*.{ts,js,json,yml}'"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 9e9c121

Please sign in to comment.