chore: fix release workflow

This commit is contained in:
Joren Broekema 2020-08-10 16:01:12 +02:00
parent 17bc6f2628
commit 9d54769dca

View file

@ -7,6 +7,7 @@ on:
jobs: jobs:
release: release:
# Prevents changesets action from creating a PR on forks
if: github.repository == 'ing-bank/lion' if: github.repository == 'ing-bank/lion'
name: Release name: Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -21,6 +22,7 @@ jobs:
uses: actions/setup-node@master uses: actions/setup-node@master
with: with:
node-version: 12.x node-version: 12.x
registry-url: 'https://registry.npmjs.org'
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path
@ -35,7 +37,7 @@ jobs:
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- name: Install Dependencies - name: Install Dependencies
run: yarn run: yarn --frozen-lockfile
- name: Create Release Pull Request or Publish to npm - name: Create Release Pull Request or Publish to npm
id: changesets id: changesets