Skip to content

Commit ab519f6

Browse files
committed
ci: move combine release and publish step
1 parent 554f958 commit ab519f6

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,23 @@ jobs:
1717
with:
1818
generate_release_notes: true
1919
prerelease: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-rc.') }}
20+
21+
publish:
22+
runs-on: ubuntu-latest
23+
needs:
24+
- release
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
# Setup .npmrc file to publish to npm
29+
- uses: actions/setup-node@v3
30+
with:
31+
node-version: "18.x"
32+
registry-url: "https://registry.npmjs.org"
33+
scope: "@miaplatform"
34+
35+
- run: npm i
36+
37+
- run: npm publish
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)