diff --git a/.github/workflows/gpr_publish.yml b/.github/workflows/gpr_publish.yml index 92abe0b..007a853 100644 --- a/.github/workflows/gpr_publish.yml +++ b/.github/workflows/gpr_publish.yml @@ -1,7 +1,7 @@ # 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 +name: GH Package Release on: release: @@ -15,8 +15,8 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - - run: npm ci - - run: npm test + - run: yarn ci + - run: yarn test publish-gpr: needs: build @@ -27,7 +27,7 @@ jobs: with: node-version: 12 registry-url: https://npm.pkg.github.com/ - - run: npm ci - - run: npm publish + - run: yarn ci + - run: yarn publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/package.json b/package.json index 028f070..a41f4ae 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "test_o": "ts-mocha tests/**/*.spec.ts", "test:e2e": "ts-mocha tests/e2e/**/*.spec.ts", "test:performance": "ts-mocha tests/performance/**/*.spec.ts", - "build:test": "npm run build && npm run test", - "prepublishOnly": "npm run build" + "build:test": "yarn run build && yarn run test", + "prepublishOnly": "yarn run build" }, "files": [ "dist",