Skip to content

Commit

Permalink
Merge pull request #154 from nschonni/remove-build-step
Browse files Browse the repository at this point in the history
ci: remove unused call to build
  • Loading branch information
srt32 committed Dec 8, 2021
2 parents 7eb71af + 9e8e499 commit 4dddd61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/nodejs.yml
Expand Up @@ -8,24 +8,20 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install
run: npm ci
- name: Test
run: npm test
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Expand Up @@ -15,11 +15,10 @@ jobs:
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{ github.event.release.tag_name }}
- run: npm whoami; npm --ignore-scripts publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 4dddd61

Please sign in to comment.