diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 414536d..72a0732 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,8 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v2 @@ -15,7 +17,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '20' # Specify the Node.js version + node-version: '20' - name: Install dependencies run: yarn install @@ -29,24 +31,7 @@ jobs: for dir in */ ; do zip -r "${dir%/}.zip" "$dir" done - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - - name: Upload Release Artifacts - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create release + uses: ncipollo/release-action@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist/*.zip - asset_name: dist.zip - asset_content_type: application/zip \ No newline at end of file + artifacts: "dist/*.zip"