Skip to content

Commit

Permalink
add release setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdakos1 committed May 7, 2020
1 parent f3cd1c0 commit d73270e
Show file tree
Hide file tree
Showing 8 changed files with 623 additions and 19 deletions.
126 changes: 115 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,121 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# ignore all
*
/bin

# unignore all with extensions
!*.*
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

!Makefile
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# uningnore all folder
!*/
# Runtime data
pids
*.pid
*.seed
*.pid.lock

# since mac likes this so much
.DS_Store
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.pnp.*

# Binaries for programs and plugins
*.exe
Expand All @@ -27,4 +131,4 @@
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
# vendor/
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: go
go: 1.13.x
os: linux
dist: xenial

jobs:
include:
- stage: deploy
if: tag IS present
node_js: "12"
script: curl -sL https://git.io/goreleaser | bash
before_deploy:
npm version $TRAVIS_TAG
deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
tags: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build:
go build -o bootstrap .; npm link
go build -o bin/bootstrap .
Binary file added bootstrap
Binary file not shown.
24 changes: 24 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
project_name: bee-bootstrap

env:
- GO111MODULE=on

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64

archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
5 changes: 0 additions & 5 deletions package-lock.json

This file was deleted.

13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
"repository": "https://github.com/bee-travels/bee-bootstrap.git",
"author": "Nick <bourdakos1@gmail.com>",
"license": "MIT",
"bin": {
"bee-bootstrap": "bootstrap"
"scripts" : {
"postinstall": "go-npm install",
"preuninstall": "go-npm uninstall"
},
"dependencies": {
"go-npm": "^0.1.9"
},
"goBinary": {
"name": "bee-bootstrap",
"path": "./bin",
"url": "https://github.com/bee-travels/bee-bootstrap/releases/download/v{{version}}/bee-bootstrap_{{platform}}_{{arch}}.tar.gz"
}
}
Loading

0 comments on commit d73270e

Please sign in to comment.