Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cociweb authored May 28, 2024
1 parent 7132008 commit 1202602
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
permissions:
contents: write
pull-requests: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -25,7 +26,6 @@ jobs:
name: Release
runs-on: ubuntu-latest
needs: [validate]
if: github.ref_name == 'main' && (github.event_name == 'push' || github.event.pull_request.merged)
steps:
- name: ⬇️ Checkout Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -70,3 +70,9 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./dist/lawn-mower-card.js
asset_name: lawn-mower-card.js

# - name: 🚀 Release
# run: npx semantic-release
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 1202602

Please sign in to comment.