From 9e8e49952ffef2c8be26320b9ac646ade256fcc8 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 8 Dec 2021 14:12:07 -0500 Subject: [PATCH] ci: remove unused call to build Ran prettier to reformat --- .github/workflows/nodejs.yml | 24 ++++++++++-------------- .github/workflows/publish.yml | 3 +-- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 2e7f01a6..db882c27 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -6,7 +6,6 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: @@ -14,16 +13,13 @@ jobs: 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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e35b09c4..c2a2a238 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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}}