Skip to content

Commit

Permalink
feat(github-actions): add support for npm version to main branch work…
Browse files Browse the repository at this point in the history
…flow (#232)
  • Loading branch information
oieduardorabelo committed Mar 12, 2023
1 parent fd4bda0 commit 35fa95a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [main]

env:
NPM_VERSION: latest

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -28,6 +31,11 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install latest npm
run: |
npm install -g npm@$NPM_VERSION &&
npm --version &&
npm list -g --depth 0
- run: npm ci
- run: npm run test-ci
env:
Expand Down

0 comments on commit 35fa95a

Please sign in to comment.