diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5cfe6d2..7145ac5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,12 +48,12 @@ jobs: echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV echo "$VERSION" -# - 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: 🚀 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 run: | @@ -78,15 +78,5 @@ jobs: #GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload Source Code as Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_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 - asset_content_type: application/javascript