Skip to content

Commit 754ae1c

Browse files
authored
Run upload and deploy in the same workflow (#214)
1 parent 104ca13 commit 754ae1c

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
contents: write
1111
actions: read
1212

13-
name: Upload Release Asset
13+
name: Release
1414

1515
jobs:
1616
build:
@@ -48,5 +48,21 @@ jobs:
4848
asset_content_type: application/zip
4949

5050
deploy:
51-
uses: ./.github/workflows/deploy-to-npm.yml
52-
needs: upload
51+
name: Publish Package to npmjs
52+
runs-on: windows-latest
53+
needs: upload
54+
steps:
55+
- uses: actions/checkout@v3
56+
- uses: actions/setup-node@v3
57+
with:
58+
node-version: 18
59+
registry-url: https://registry.npmjs.org/
60+
- run: |
61+
dir
62+
npm ci
63+
npm run build
64+
npm whoami
65+
npm publish
66+
env:
67+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
68+
working-directory: ${{ github.workspace }}/src/shell/js/composeui-node-launcher/

0 commit comments

Comments
 (0)