FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ci: fix Node.js version for OIDC release + harden pipeline by gxkl · Pull Request #8 · node-modules/diskstore · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .yml  (2) All 1 file type selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: artusjs/github-actions/.github/workflows/node-test.yml@v1
with:
os: 'ubuntu-latest, macos-latest, windows-latest'
version: '16, 18'
version: '16, 18, 20, 22'

# Node.js 14 has no macOS arm64 build (macos-latest is Apple Silicon),
# so run it on Linux and Windows only.
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,20 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
# 避免并发触发的两次发布互相踩踏,且不取消进行中的发布
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
registry-url: 'https://registry.npmjs.org'

# OIDC trusted publishing requires npm >= 11.5.1
Expand All @@ -56,6 +60,7 @@ jobs:

- name: Version bump
id: bump
if: ${{ github.event.inputs.dry_run != 'true' }}
run: |
npm version ${{ github.event.inputs.version_type }} -m "Release v%s"
echo "tag=v$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT"
Expand All @@ -72,7 +77,7 @@ jobs:

- name: Push commit and tag
if: ${{ github.event.inputs.dry_run != 'true' }}
run: git push origin HEAD --follow-tags
run: git push origin HEAD:${{ github.ref_name }} --follow-tags

- name: Create GitHub Release
if: ${{ github.event.inputs.dry_run != 'true' }}
Expand Down
Loading

Back | FazBrowse Home | New Git URL