Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry2013 committed Apr 6, 2024
1 parent cc1c43c commit b6c6dc2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
required: true
type: string

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -33,9 +36,9 @@ jobs:
echo "GITHUB_SHA=$(git log -1 --format='%H')" >> "$GITHUB_ENV"
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '18.x'
cache: 'npm'

- name: Build & Bundle
Expand All @@ -52,7 +55,7 @@ jobs:
git tag -f -a ${{ inputs.tag }} -m "Release ${{ inputs.tag }}"
git push -f origin ${{ inputs.tag }}
- uses: softprops/action-gh-release@v1
- uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag }}
prerelease: true
Expand Down

0 comments on commit b6c6dc2

Please sign in to comment.