Skip to content

Commit

Permalink
👷 ci(publishing): setup npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
James Stumme authored and James Stumme committed Nov 28, 2020
1 parent 9d10efa commit 9832484
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- if: contains(github.ref, 'tags') && matrix.node-version == '14.x'
name: Building release package
run: yarn build
- if: contains(github.ref, 'tags') && matrix.node-version == '14.x'
name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./Release/package.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"lint": "tslint -c tslint.json 'src/**/*.ts'",
"prebuild": "rimraf dist .rpt2_cache Release",
"build": "rollup -c build/rollup.config.js",
"postbuild": "mkdirp Release/types && copyfiles src/typings/**/* Release/types/ -u 2 && copyfiles dist/**/* Release/ && copyfiles package.json Release/ && copyfiles *.md Release/"
"postbuild": "mkdirp Release/types && copyfiles types/**/* Release/types/ -u 1 && copyfiles dist/**/* Release/ && copyfiles package.json Release/ && copyfiles *.md Release/"
},
"dependencies": {
"deep-equal": "^2.0.3",
Expand Down

0 comments on commit 9832484

Please # to comment.