Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 1d18b78

Browse files
committed
refactor github actions
1 parent 0cc26cf commit 1d18b78

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed

.github/workflows/delivery.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: delivery
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v2
14+
- name: Use Node.js LTS
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 16.x
18+
- name: Install deps
19+
uses: bahmutov/npm-install@v1
20+
- name: Lint
21+
run: yarn lint
22+
- name: Test
23+
run: yarn test --ci
24+
- name: Build
25+
run: yarn build
26+
- name: Publish
27+
run: yarn publish --access public
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/integration.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,19 @@ on:
55

66
jobs:
77
build:
8-
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
9-
runs-on: ${{ matrix.os }}
10-
strategy:
11-
matrix:
12-
node: ['10.x', '12.x', '14.x']
13-
os: [ubuntu-latest, windows-latest, macOS-latest]
8+
runs-on: ubuntu-latest
149
steps:
1510
- name: Checkout repo
1611
uses: actions/checkout@v2
17-
- name: Use Node ${{ matrix.node }}
12+
- name: Use Node.js LTS
1813
uses: actions/setup-node@v1
1914
with:
20-
node-version: ${{ matrix.node }}
21-
- name: Install deps and build (with cache)
15+
node-version: 16.x
16+
- name: Install deps
2217
uses: bahmutov/npm-install@v1
2318
- name: Lint
2419
run: yarn lint
2520
- name: Test
26-
run: yarn test --ci --coverage --maxWorkers=2
21+
run: yarn test --ci
2722
- name: Build
2823
run: yarn build

0 commit comments

Comments
 (0)