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

Commit

Permalink
build: fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanguy Antoine committed Aug 20, 2019
1 parent 4d0033c commit 1f49f6b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build and Tests
on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn install --frozen-lockfile
- run: yarn test
15 changes: 2 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,16 @@ on:
push:
tags:
- release-*

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn install --frozen-lockfile
- run: yarn test

publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn install --frozen-lockfile
- run: yarn semantic-release:ci
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Expand All @@ -33,7 +22,6 @@ jobs:
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

publish-gpr:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -42,6 +30,7 @@ jobs:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@tanguyantoine'
- run: yarn install --frozen-lockfile
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 comments on commit 1f49f6b

Please sign in to comment.