Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 1f49f6b

Browse files
author
Tanguy Antoine
committed
build: fix workflow
1 parent 4d0033c commit 1f49f6b

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Build and Tests
2+
on: push
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v1
9+
- uses: actions/setup-node@v1
10+
with:
11+
node-version: 12
12+
- run: yarn install --frozen-lockfile
13+
- run: yarn test

.github/workflows/publish.yml

+2-13
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,16 @@ on:
44
push:
55
tags:
66
- release-*
7-
87
jobs:
9-
test:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-node@v1
14-
with:
15-
node-version: 12
16-
- run: yarn install --frozen-lockfile
17-
- run: yarn test
18-
198
publish-npm:
20-
needs: test
219
runs-on: ubuntu-latest
2210
steps:
2311
- uses: actions/checkout@v1
2412
- uses: actions/setup-node@v1
2513
with:
2614
node-version: 12
2715
registry-url: https://registry.npmjs.org/
16+
- run: yarn install --frozen-lockfile
2817
- run: yarn semantic-release:ci
2918
env:
3019
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -33,7 +22,6 @@ jobs:
3322
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
3423

3524
publish-gpr:
36-
needs: test
3725
runs-on: ubuntu-latest
3826
steps:
3927
- uses: actions/checkout@v1
@@ -42,6 +30,7 @@ jobs:
4230
node-version: 12
4331
registry-url: https://npm.pkg.github.com/
4432
scope: '@tanguyantoine'
33+
- run: yarn install --frozen-lockfile
4534
- run: npm publish
4635
env:
4736
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 commit comments

Comments
 (0)