Skip to content

Commit

Permalink
ci: 修改release配置
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangwenbin committed Jun 11, 2024
1 parent fdec28f commit 9047868
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:
# Input has to be provided for the workflow to run
required: true

env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
trigger-release:
Expand All @@ -27,9 +30,23 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 16

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependency
run: |
yarn
- name: Create Release
run: |
yarn install
yarn create-release
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"lint": "vue-cli-service lint",
"vue-ui": "vue ui",
"webpack-output": "vue inspect > output.js",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"postinstall": "husky install",
"prepare": "husky install",
"create-release": "release-it --ci",
Expand Down

0 comments on commit 9047868

Please sign in to comment.