Skip to content

Commit 58b7371

Browse files
committed
fix(ci): migrate workflows to yaml syntax
1 parent 2b7a0b7 commit 58b7371

File tree

2 files changed

+23
-28
lines changed

2 files changed

+23
-28
lines changed

.github/main.workflow

-28
This file was deleted.

.github/workflows/push.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI/CD
2+
on: push
3+
4+
jobs:
5+
test-and-release:
6+
name: Test and Release
7+
runs-on: ubuntu-latest
8+
steps:
9+
# Checkout the repo at the push ref
10+
- uses: actions/checkout@v1
11+
# Install deps
12+
- name: Install
13+
run: yarn
14+
# Run tests
15+
- name: Test
16+
run: yarn test
17+
# Attempt release if we're on master
18+
- name: Release
19+
if: github.ref == 'refs/heads/master'
20+
run: yarn run release-ci
21+
env:
22+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)