Skip to content

Commit

Permalink
try to fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioCoser committed Mar 29, 2024
1 parent 3016c19 commit 2d7653c
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
release:
needs: test
needs: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -43,14 +43,23 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- uses: actions/create-release@v1
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./cdn/doom-reactive-state.global.js
asset_name: doom-reactive-state.global.js
asset_content_type: application/javascript
env:
GITHUB_TOKEN: ${{ github.token }}
asset_content_type: application/javascript

0 comments on commit 2d7653c

Please sign in to comment.