Skip to content

Commit

Permalink
feat(*): add publish workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Will Soto <willsoto@users.noreply.github.com>
  • Loading branch information
willsoto committed Nov 26, 2019
1 parent 8c0b22c commit ba6cba2
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 96 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,18 @@ jobs:
yarn lint
yarn build
yarn test:cov
publish:
runs-on: ubuntu-latest
if: success() && github.ref == 'master'

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: yarn install --frozen-lockfile
- run: yarn run build
- run: npm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
- run: npm login --registry=https://npm.pkg.github.com
- run: npm run publish
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@
"name": "@willsoto/nestjs-prometheus",
"description": "",
"license": "Apache-2.0",
"author": "Will Soto <willsoto@users.noreply.github.com>",
"author": {
"name": "Will Soto",
"email": "willsoto@users.noreply.github.com",
"url": "https://github.com/willsoto"
},
"repository": "git://github.com/willsoto/nestjs-prometheus.git",
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},
"version": "0.0.1",
"main": "dist/nestjs-prometheus.umd.js",
"module": "dist/nestjs-prometheus.esm.js",
"files": [
"dist",
"lib",
"src",
"typings"
],
"scripts": {
Expand Down Expand Up @@ -78,7 +86,7 @@
"rxjs": "6.5.3",
"sinon-chai": "3.3.0",
"source-map-support": "0.5.16",
"standard-version": "7.0.0",
"standard-version": "7.0.1",
"supertest": "4.0.2",
"ts-node": "8.4.1",
"tsconfig-paths": "3.9.0",
Expand Down
Loading

0 comments on commit ba6cba2

Please sign in to comment.