Skip to content

Commit

Permalink
chore: use npx for the release job
Browse files Browse the repository at this point in the history
In order to simplify the release job, we want to switch to the `npx
semantic-release` command to skip dependencies installation
  • Loading branch information
piotr-oles committed Dec 20, 2019
1 parent 157aa02 commit ba66659
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,27 +102,10 @@ jobs:
with:
node-version: 12

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Install semantic-release
run: yarn global add semantic-release@16.0.0-beta.18

- name: Download build artifact
uses: actions/download-artifact@v1
with:
name: lib

- name: Release
run: semantic-release
run: npx semantic-release@16.0.0-beta.18

0 comments on commit ba66659

Please sign in to comment.