Skip to content

Commit

Permalink
Merge pull request #131 from cmars/fix/npm-script
Browse files Browse the repository at this point in the history
fix: npm package script, semantic release
  • Loading branch information
cmars authored Dec 16, 2021
2 parents 9248c66 + ce429bd commit ccdbc5e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
20 changes: 7 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,24 +66,18 @@ workflows:
jobs:
- test:
name: Test
filters:
# In CircleCI, branches are on by default and do not need to be specified.
# However tags are off by default and need to be specified.
tags:
only: '/^v.*$/'
- docker-release:
name: Docker Image Release
- npm-release:
name: NPM Release - Tag
requires:
- Test
context: nodejs-app-release
filters:
branches:
only: 'main'
tags:
only: '/^v.*$/'
- npm-release:
name: NPM Release - Tag
requires:
- Test
docker_publish:
jobs:
- docker-release:
name: Docker Image Release
filters:
branches:
ignore: '/.*/'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@snyk/sweater-comb",
"packageManager": "yarn@3.0.2",
"version": "1.0.0-alpha.0",
"version": "1.0.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"bin": {
"sweater-comb": "build/index.js"
"sweater-comb": "scripts/sweater-comb.js"
},
"files": [
"/build"
Expand Down
3 changes: 3 additions & 0 deletions scripts/sweater-comb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('../build/index.js');

0 comments on commit ccdbc5e

Please sign in to comment.