diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c5f867141..f3286c31ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,9 @@ on: required: true type: string +permissions: + contents: write + jobs: build: runs-on: ubuntu-latest @@ -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 @@ -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