From 8124ab6d998269ca2fff2e038541292ecefff0ec Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Sat, 26 Oct 2024 16:50:45 +0200 Subject: [PATCH] Update CI --- .github/workflows/publish.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8211e752..0575ee06 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,11 @@ on: tags: - '*' +permissions: + contents: write + id-token: write + packages: write + jobs: publish: runs-on: ubuntu-latest @@ -31,10 +36,12 @@ jobs: - uses: JS-DevTools/npm-publish@v3 with: token: ${{ secrets.NPM_TOKEN }} - # - name: Create a Release - # uses: elgohr/Github-Release-Action@v5 - # env: - # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # title: ${{ github.ref }} - # tag: ${{ github.ref }} + - name: Create Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref_name }} + release_name: Release ${{ github.ref_name }} + draft: false + prerelease: false