Browse Source

fix: 修正 goreleaser v2 参数 (#5303)

#### What this PR does / why we need it?

DEPRECATED: --skip-publish was deprecated in favor of --skip=publish, check https://goreleaser.com/deprecations#-skip for more details

#### Summary of your change

#### Please indicate you've done the following:

- [ ] Made sure tests are passing and test coverage is added if needed.
- [ ] Made sure commit message follow the rule of [Conventional Commits specification](https://www.conventionalcommits.org/).
- [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.
pull/5304/head
吴小白 6 months ago committed by GitHub
parent
commit
80b7bb44f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      .github/workflows/build-test.yml
  2. 12
      .github/workflows/release-drafter.yml

12
.github/workflows/build-test.yml

@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: '18.14' node-version: '20.2'
- name: Build Web - name: Build Web
id: build_frontend id: build_frontend
run: | run: |
@ -25,10 +25,10 @@ jobs:
env: env:
NODE_OPTIONS: --max-old-space-size=8192 NODE_OPTIONS: --max-old-space-size=8192
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: '1.20.x' go-version: '1.22'
- name: Build Server - name: Build Server
uses: goreleaser/goreleaser-action@v4 uses: goreleaser/goreleaser-action@v6
with: with:
args: release --snapshot --clean args: release --snapshot --clean

12
.github/workflows/release-drafter.yml

@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: '20.2' node-version: '20.2'
- name: Build Web - name: Build Web
@ -22,15 +22,15 @@ jobs:
env: env:
NODE_OPTIONS: --max-old-space-size=8192 NODE_OPTIONS: --max-old-space-size=8192
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: '1.21.x' go-version: '1.22'
- name: Build Release - name: Build Release
uses: goreleaser/goreleaser-action@v4 uses: goreleaser/goreleaser-action@v6
with: with:
distribution: goreleaser distribution: goreleaser
version: latest version: latest
args: release --skip-publish --clean args: release --skip=publish --clean
- name: Upload Assets - name: Upload Assets
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')

Loading…
Cancel
Save