diff --git a/.github/workflows/testAndPublish.yml b/.github/workflows/testAndPublish.yml index b6597720..54649a9f 100644 --- a/.github/workflows/testAndPublish.yml +++ b/.github/workflows/testAndPublish.yml @@ -84,10 +84,8 @@ jobs: - name: Install Dependencies run: yarn install --frozen-lockfile - - name: Authenticate with NPM registry - env: - npm_TOKEN: ${{secrets.npm_TOKEN}} - run: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/.npmrc + - name: Build Package + run: yarn run build - name: 2FA Publish step uses: erezrokah/2fa-with-slack-action@v1.0.0 diff --git a/package.json b/package.json index 3e1229ab..cac9a8d1 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,7 @@ "coverage:ci": "mkdir -p coverage && TZ=GMT jest --coverage --coverageReporters=text-lcov > ./coverage/lcov.info", "prettier": "prettier --write src/**/*.ts", "prettier:ci": "prettier --list-different src/**/*.ts", - "tag": "git tag \"v$npm_package_version\" && git push --tags", - "prepublishOnly": "yarn run build" + "tag": "git tag \"v$npm_package_version\" && git push --tags" }, "files": [ "lib"