From 8d0f0435aae6e782712e4ec2b3ccb45d18696f55 Mon Sep 17 00:00:00 2001 From: Cameron Paczek Date: Fri, 3 Feb 2023 15:20:30 -0800 Subject: [PATCH] update workflows --- .github/workflows/publish.yaml | 4 ++-- .github/workflows/tests.yaml | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2de3317..dd8c6c1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -13,7 +13,7 @@ jobs: with: node-version: '16.x' registry-url: 'https://registry.npmjs.org' - - run: npm ci - - run: npm publish + - run: yarn install --frozen-lockfile + - run: yarn publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 804f28a..822f1d2 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -7,11 +7,14 @@ jobs: run-tests: name: Run Tests runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14, 16, 18] steps: - uses: actions/checkout@v2 - name: Install modules working-directory: ./ - run: npm ci + run: yarn install --frozen-lockfile - name: Run Tests working-directory: ./ - run: npm run test + run: yarn test