Skip to content

Commit

Permalink
Fix publisher settings to run manually (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abbondanzo authored Feb 11, 2020
1 parent 838b612 commit 6972629
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
name: Publish to NPM

on:
release:
release:
types: [published]

jobs:
build:

publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Install packages
run: npm ci
- name: Build the project
run: npm run build
- name: Publish to NPM
uses: primer/publish@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
args: '--dir=lib'
- name: Checkout project
uses: actions/checkout@v1
- name: Install packages
run: npm ci
- name: Build the project
run: npm run build
- name: Publish to NPM
uses: npm run publish:lib
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"link": "npm link && cd docs && npm link replay-viewer",
"submodule": "git submodule update --remote",
"submodule:init": "git submodule update --init --remote",
"publish:lib": "cd lib && npm publish",
"prepublishOnly": "echo 'Do not publish from root. Publish from lib'; exit 1"
},
"repository": {
Expand Down

0 comments on commit 6972629

Please sign in to comment.