Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 33b0fc1

Browse files
committed
Move to GH actions for release
1 parent fde5992 commit 33b0fc1

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on: [push]
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Prepare repository
13+
run: git fetch --unshallow --tags
14+
15+
- name: Use Node.js 14.x
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 14.x
19+
20+
- name: Install dependencies
21+
uses: bahmutov/npm-install@v1
22+
23+
- name: Test and build
24+
run: |
25+
yarn test
26+
yarn build
27+
28+
- name: Create Release
29+
env:
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
run: yarn release

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)