Skip to content

Commit

Permalink
ci: Move artifact building to GitHub actions (getsentry/sentry-replay#26
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BYK authored Apr 14, 2021
1 parent 14e906f commit 3b6dcec
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 35 deletions.
4 changes: 3 additions & 1 deletion .craft.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
minVersion: '0.20.0'
github:
owner: getsentry
repo: sentry-rrweb
Expand All @@ -12,3 +12,5 @@ targets:
access: public
statusProvider:
name: github
artifactProvider:
name: github
22 changes: 20 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: build
on: [push]
on:
push:
branches:
- main
- release/**

jobs:
build:
Expand All @@ -8,5 +12,19 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- run: npm install
- uses: actions/cache@v2
id: cache
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
- run: npm test
- run: npm build
- run: npm pack
- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: |
${{ github.workspace }}/*.tgz
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

0 comments on commit 3b6dcec

Please sign in to comment.