Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Dec 26, 2023
1 parent 7419b70 commit 8e6d461
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ jobs:
run: pnpm i
- name: Build
run: pnpm run build
- name: Install prod dependencies
run: rm -rf node_modules && pnpm install --production
- name: Add node_modules and dist
- name: Add dist
shell: bash
run: |
git add --force dist/
Expand All @@ -85,6 +83,11 @@ jobs:
branch: release/${{steps.update-version.outputs.version}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout new tag
uses: actions/checkout@v4
with:
ref: release/${{steps.update-version.outputs.version}}
token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Create tag
id: tag
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-released-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
node-version: ${{ vars.NODE_VERSION}}
- name: Update test tag
uses: greenhat616/update-tag@v1.2.2
uses: richardsimko/update-tag@v1
with:
tag_name: test-released-version
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-major-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
MAJOR_VERSION=$(echo "${FULL_VERSION%.*.*}")
echo "TAG_NAME=${MAJOR_VERSION}" >> $GITHUB_OUTPUT
- name: Update reference to latest version
uses: greenhat616/update-tag@v1.2.2
uses: richardsimko/update-tag@v1
with:
tag_name: ${{ steps.extract-version.outputs.TAG_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update reference to latest version
uses: greenhat616/update-tag@v1.2.2
uses: richardsimko/update-tag@v1
with:
tag_name: latest
env:
Expand Down

0 comments on commit 8e6d461

Please sign in to comment.