Skip to content

Commit

Permalink
chore: update-package-version-by-release-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Oct 12, 2024
1 parent 7fdb8c7 commit 5b08aee
Show file tree
Hide file tree
Showing 14 changed files with 159 additions and 54 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
- name: Update local package.json version from release tag
if: github.event.release.tag_name
uses: BellCubeDev/update-package-version-by-release-tag@v2
with:
keep-v: "false" # If set to "true", will not remove any 'v' prefix from the version number.
ignore-semver-check: "false" # If set to "true", will not check if the version number is a valid semver version.
- name: Build scripts
run: npm run build
- name: Generate modules
run: npm run build:args
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: output
name: artifact
path: |
.github/RELEASE-TEMPLATE.md
CHANGELOG.md
modules
dist
2 changes: 1 addition & 1 deletion .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: dist
name: artifact
path: dist
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: dist
name: artifact
path: dist
- name: Deploy
uses: exuanbo/actions-deploy-gist@main
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: output
name: artifact
- name: Publish Draft
uses: softprops/action-gh-release@v2
with:
body_path: .github/RELEASE-TEMPLATE.md
body_path: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}
files: |
dist/*.js
modules/*
files: dist/*
draft: true
6 changes: 2 additions & 4 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: output
name: artifact
- name: Publish Pre-Release
uses: softprops/action-gh-release@v2
with:
body_path: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}
files: |
dist/*.js
modules/*
files: dist/*
prerelease: true
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: output
name: artifact
- name: Publish Release
uses: softprops/action-gh-release@v2
with:
body_path: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}
files: |
dist/*.js
modules/*
files: dist/*
make_latest: "true"
Loading

0 comments on commit 5b08aee

Please sign in to comment.