Skip to content

Commit 050caa3

Browse files
committed
test this on all pushes
1 parent 5e80278 commit 050caa3

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/npm.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
name: npm
22
on:
33
push:
4-
branches: main
54

65
jobs:
7-
publish:
6+
build:
7+
name: Build
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
1111
- run: npm ci
12-
- run: npm run format
13-
- run: npm run build
14-
- uses: JS-DevTools/npm-publish@541aa6b21b4a1e9990c95a92c21adc16b35e9551 # v2.1.0
12+
- name: Publish
13+
uses: JS-DevTools/npm-publish@541aa6b21b4a1e9990c95a92c21adc16b35e9551 # v2.1.0
14+
# only on default branch
15+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
1516
with:
1617
access: public
1718
token: ${{ secrets.NPM_TOKEN }}
1819

1920
renovate:
20-
name: Update
21-
needs: publish
21+
name: Renovate
22+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
23+
needs: build
2224
uses: urcomputeringpal/.github/.github/workflows/renovate.yaml@main
2325
with:
2426
renovate_app_slug: ur-renovate

0 commit comments

Comments
 (0)