Skip to content

Commit 200a72b

Browse files
authored
ci: make the npm release last since it is not reversible (#442)
1 parent bd33ef8 commit 200a72b

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ jobs:
4141
run: |
4242
sed -i 's/(\.\.\/web-component)/(web-component)/g' dist/packages/ngx-web-component/README.md
4343
sed -i 's/(test-data\//(https:\/\/github.com\/ReadAlongs\/Studio-Web\/blob\/${{ github.ref_name }}\/packages\/web-component\/test-data\//g' dist/packages/web-component/README.md
44-
- name: Publish web-component to npmjs
45-
run: |
46-
cd dist/packages/web-component && npm publish --access=public
47-
env:
48-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49-
- name: Publish ngx-web-component to npmjs
50-
run: |
51-
cd dist/packages/ngx-web-component && npm publish --access=public
52-
env:
53-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5444
- name: Update CHANGELOG
5545
id: changelog
5646
uses: requarks/changelog-action@v1
@@ -65,6 +55,16 @@ jobs:
6555
tag: ${{ github.ref_name }}
6656
name: Release ${{ github.ref_name }}
6757
body: ${{ steps.changelog.outputs.changes }}
58+
- name: Publish web-component to npmjs
59+
run: |
60+
cd dist/packages/web-component && npm publish --access=public
61+
env:
62+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
63+
- name: Publish ngx-web-component to npmjs
64+
run: |
65+
cd dist/packages/ngx-web-component && npm publish --access=public
66+
env:
67+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6868

6969
deploy:
7070
needs: publish

0 commit comments

Comments
 (0)