From 1f49f6b6aaec043c95f35cafd89d3c62e8f39d23 Mon Sep 17 00:00:00 2001 From: Tanguy Antoine Date: Tue, 20 Aug 2019 23:27:49 +0200 Subject: [PATCH] build: fix workflow --- .github/workflows/ci.yml | 13 +++++++++++++ .github/workflows/publish.yml | 15 ++------------- 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..8ef12d62 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9d4bd2ba..277051a2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,20 +4,8 @@ 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 @@ -25,6 +13,7 @@ jobs: 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}} @@ -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 @@ -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}}