Skip to content

Commit

Permalink
added prepublish
Browse files Browse the repository at this point in the history
  • Loading branch information
ammichael committed Mar 1, 2020
1 parent f4214c2 commit 08fd696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,7 @@ on:
release:
types: [published]

jobs:
publish_github:
runs-on: ubuntu-latest
name: Publish to Github Packages
steps:
- uses: actions/checkout@master
- uses: borales/[email protected]
with:
auth-token: ${{ secrets.GPR_ACCESS_TOKEN }}
registry-url: 'https://npm.pkg.github.com'
scope: platfombuilders
cmd: version
- name: Create .npmrc
run: |
echo "@platformbuilders:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${{ secrets.GPR_ACCESS_TOKEN }}" > ~/.npmrc
- name: Publish
run: npm publish

publish_npm:
publish:
runs-on: ubuntu-latest

name: Publish to npm
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"lint": "eslint '*/**/*.{js,ts,tsx}' --fix",
"pretty": "prettier --config ./.prettierrc.js --write \"src/**/*.js\"",
"clean": "rm -rf ./node_modules && yarn install",
"prepublish": "tsc",
"precommit": "yarn lint",
"postversion": "git push && git push --tags",
"version:patch": "npm version patch",
Expand Down

0 comments on commit 08fd696

Please sign in to comment.