Skip to content

Commit

Permalink
ci: fix semantic release workflow (#5876)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Jan 11, 2022
1 parent 35ba938 commit 9f1a7d4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:

env:
php-version: '8.0'
node-version: 16
build-node-version: 16
semantic-node-version: 16


jobs:
Expand All @@ -34,16 +35,21 @@ jobs:
with:
fetch-depth: 0 # Get all tags

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ env.semantic-node-version }}

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN_RELEASE: ${{ secrets.GH_TOKEN_RELEASE }}
with:
semantic_version: 17.3.7
semantic_version: 18
extra_plugins: |
@semantic-release/changelog
@semantic-release/changelog@6
semantic-release-github-pullrequest
- name: New release published
Expand Down Expand Up @@ -98,7 +104,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ env.node-version }}
node-version: ${{ env.build-node-version }}
- name: Get yarn cache directory path
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand Down

0 comments on commit 9f1a7d4

Please sign in to comment.