From b6d83b5efa4d3de99737513603eb6cb02e01c908 Mon Sep 17 00:00:00 2001 From: Nick Frasser <1693461+nfrasser@users.noreply.github.com> Date: Tue, 19 Nov 2024 00:01:01 -0500 Subject: [PATCH] Tweak ci scripts --- .github/workflows/ci.yml | 2 -- .github/workflows/release.yml | 11 ++++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26f7b3a..5d40620 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,8 +33,6 @@ jobs: node-version: 'lts/*' cache: 'npm' - run: npm install - - name: 'Setup dist' - run: bash test/setup.sh --dist - name: Run coverage run: | npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57035a4..d50cc5a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,17 +13,18 @@ jobs: with: node-version: 'lts/*' cache: 'npm' - - name: Configure npm + - run: npm install + - name: configure npm run: | echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc - cat .npmrc env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - run: npm install - - run: npm publish --workspaces + - name: publish to npm + run: npm publish --workspaces env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - run: npm run dist:postpublish + - name: postpublish + run: npm run dist:postpublish - uses: actions/upload-artifact@v3 with: name: linkify