Skip to content

Commit

Permalink
ci: fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah committed Feb 6, 2020
1 parent f2b92a4 commit 45591c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/testAndPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 45591c7

Please sign in to comment.