Skip to content

Commit 35fa95a

Browse files
feat(github-actions): add support for npm version to main branch workflow (#232)
1 parent fd4bda0 commit 35fa95a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/merge-to-main.yml

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [main]
66

7+
env:
8+
NPM_VERSION: latest
9+
710
jobs:
811
build:
912
runs-on: ubuntu-latest
@@ -28,6 +31,11 @@ jobs:
2831
uses: actions/setup-node@v1
2932
with:
3033
node-version: ${{ matrix.node-version }}
34+
- name: Install latest npm
35+
run: |
36+
npm install -g npm@$NPM_VERSION &&
37+
npm --version &&
38+
npm list -g --depth 0
3139
- run: npm ci
3240
- run: npm run test-ci
3341
env:

0 commit comments

Comments
 (0)