diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8689e9c..9dd929b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,10 +52,10 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} - name: Install global dependencies - run: npm i standard-version -g + run: npm i standard-version yarn -g - name: Install dependencies - run: npm i + run: yarn - name: Get Prev Version shell: bash -ex {0} @@ -76,6 +76,7 @@ jobs: - name: Publish if: env.PREV_VERSION != env.CURRENT_VERSION run: | + npm run build npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c16e400..a96044c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,14 +32,17 @@ jobs: cache-name: cache-node-modules with: path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- + - name: Install global dependencies + run: npm i yarn -g + - name: Install dependencies - run: npm install + run: yarn - name: Run linter run: npm run lint