diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbbbfc6e..24577fa2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,37 +42,8 @@ jobs: - name: 🏗 Build run: npm run build -# - name: 🚀 Release -# run: npm publish --access public -# env: -# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} -# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} -# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: true - prerelease: false - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 + - name: 🚀 Release + run: npx semantic-release env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - with: - 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 }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}