Skip to content

Commit

Permalink
build: tweak release action
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist authored Jun 4, 2020
1 parent a5fd035 commit 9489eca
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,20 @@ jobs:
with:
# alias support: https://github.com/actions/setup-node/issues/26
node-version: '12'
- name: Cache NPM dependencies
uses: actions/cache@v1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ matrix.os }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-npm-cache-${{ matrix.os }}
${{ runner.os }}-yarn-
- name: Install Dependencies
run: |
npm install -g yarn
yarn --frozen-lockfile --non-interactive
- uses: actions/checkout@v2
run: yarn
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/git
@semantic-release/changelog@3.0.0
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9489eca

Please sign in to comment.