diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 673bd33..db12a5b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,6 +1,3 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - name: Node.js CI on: @@ -24,6 +21,6 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present + - name: Install dependencies + run: yarn install - run: npm test diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 861e372..8bca494 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,6 +1,3 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages - name: Node.js Package on: @@ -15,7 +12,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - - run: npm ci + - run: yarn install --frozen-lockfile - run: npm test publish-npm: @@ -27,7 +24,7 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ - - run: npm ci + - run: yarn install --frozen-lockfile - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} @@ -41,7 +38,7 @@ jobs: with: node-version: 12 registry-url: https://npm.pkg.github.com/ - - run: npm ci + - run: yarn install --frozen-lockfile - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}