Skip to content

Commit

Permalink
ci: Fix release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Sep 9, 2019
1 parent 63d55b8 commit 5cf31fd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.idea/
node_modules/
dist/
coverage/
.nyc_output/
yarn-error.log
*.tgz
/dist/
/coverage/
/.nyc_output/
/yarn-error.log
/*.tgz
/.alobuild-tsconfig-*.json
package-lock.json
/package-lock.json
.npmrc
6 changes: 4 additions & 2 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ prepare:
- package.json
- projects/ngx-sails/package.json
- yarn.lock
- path: *exec
cmd: ./mkrelease.sh

publish:
- path: *npm
pkgRoot: './dist/ngx-sails'
- path: *exec
cmd: npm publish ./dist.tgz
- *gh

generateNotes:
Expand Down
5 changes: 5 additions & 0 deletions mkrelease.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

bash -c 'cd dist/ngx-sails && npm pack';
cp dist/ngx-sails/*.tgz dist.tgz
if [[ $NPM_TOKEN ]]; then echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc; fi;

0 comments on commit 5cf31fd

Please sign in to comment.