Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry2013 committed Apr 5, 2024
1 parent cc1c43c commit 69c05ec
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 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,15 +36,15 @@ 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
run: |
npm ci
sed -i 's/{#COMMIT_HASH#}/${{ inputs.tag }}/' JitsiMeetJS.ts
export LIB_JITSI_MEET_COMMIT_HASH=${{ inputs.tag }}
npm pack
mv lib-jitsi-meet-0.0.0.tgz lib-jitsi-meet.tgz
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 69c05ec

Please sign in to comment.