Skip to content

Commit

Permalink
Run upload and deploy in the same workflow (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm authored May 3, 2023
1 parent 104ca13 commit 754ae1c
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
contents: write
actions: read

name: Upload Release Asset
name: Release

jobs:
build:
Expand Down Expand Up @@ -48,5 +48,21 @@ jobs:
asset_content_type: application/zip

deploy:
uses: ./.github/workflows/deploy-to-npm.yml
needs: upload
name: Publish Package to npmjs
runs-on: windows-latest
needs: upload
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: |
dir
npm ci
npm run build
npm whoami
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
working-directory: ${{ github.workspace }}/src/shell/js/composeui-node-launcher/

0 comments on commit 754ae1c

Please sign in to comment.