-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker.yml
31 lines (31 loc) · 917 Bytes
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
box:
id: mhart/alpine-node:latest
cmd: /bin/sh
build:
steps:
- script:
name: actual build
code: |
echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
echo http://dl-cdn.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories
apk --no-cache add yarn
yarn && yarn build
deploy:
steps:
- script:
name: install curl
code: apk --no-cache add curl file
- turistforeningen/npm-publish
- script:
name: get version
code: export PACKAGE_VERSION=v$(node -p "require('./package.json').version")
- script:
name: generate tarball
code: tar -czf build.tar.gz * && ls .
- github-create-release:
token: $GITHUB_TOKEN
tag: $PACKAGE_VERSION
- github-upload-asset:
token: $GITHUB_TOKEN
file: build.tar.gz
filename: build-$GITHUB_RELEASE_VERSION.tar.gz