-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.01 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Publish
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install dependencies
run: npm run bootstrap
- name: Build @fretnot/playground
working-directory: packages/playground
run: npm run build
- name: Publish @fretnot/playground
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: packages/playground/dist
- name: Build @fretnot/api
working-directory: packages/api
run: npm run build
- name: Publish @fretnot/api
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: |
heroku container:login
heroku container:push -a ${{ secrets.HEROKU_APP_NAME }} web
heroku container:release -a ${{ secrets.HEROKU_APP_NAME }} web
- name: Publish @fretnot/fretboard
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}