Skip to content

Commit 5495296

Browse files
authored
Merge pull request SolidOS#387 from solid/release-to-npm
publish version to npm on main branch
2 parents 65bbdd3 + 43b089e commit 5495296

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
github_token: ${{ secrets.GITHUB_TOKEN }}
5151
publish_dir: .
5252

53-
npm:
53+
npm-publish-build:
5454
needs: test
5555
runs-on: ubuntu-latest
5656
steps:
@@ -69,3 +69,18 @@ jobs:
6969
with:
7070
token: ${{ secrets.NPM_TOKEN }}
7171
tag: ${{ env.GITHUB_REF_SLUG }}
72+
npm-publish-latest:
73+
needs: test
74+
runs-on: ubuntu-latest
75+
if: github.ref == 'refs/heads/main'
76+
steps:
77+
- uses: actions/download-artifact@v2
78+
with:
79+
name: build
80+
- uses: actions/setup-node@v1
81+
with:
82+
node-version: 14.x
83+
- uses: JS-DevTools/npm-publish@v1
84+
with:
85+
token: ${{ secrets.NPM_TOKEN }}
86+
tag: latest

0 commit comments

Comments
 (0)