Skip to content

Commit

Permalink
chore: automate publish to github package
Browse files Browse the repository at this point in the history
  • Loading branch information
septs committed Jul 19, 2020
1 parent e9354ab commit 8a94740
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/E2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
image: differui/node-14.4.0-browsers:v1

# more: https://github.community/t5/GitHub-Actions/How-to-run-action-as-a-non-root-user/m-p/45733/highlight/true#M6330
options: '--user 1000
options: "--user 1000
-v /home/ubuntu/.cache/yarn/v6:/tmp/.yarn-cache-1000/v6
-v /home/ubuntu/.cache/alice_home:/tmp/alice_home
-v /home/ubuntu/.cache/bob_home:/tmp/bob_home
-v /home/ubuntu/.e2e/e2e-test:/tmp/e2e-test'
-v /home/ubuntu/.e2e/e2e-test:/tmp/e2e-test"

# more: https://stackoverflow.com/a/60202672/1986338
# volumes:
Expand All @@ -40,6 +40,10 @@ jobs:
# @v2 requires too much configurations
- uses: actions/checkout@v1

- uses: jgierer12/npm-auth-gpr@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Dependencies
run: |
yarn config set cache-folder /tmp/.yarn-cache-1000/v6
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
# @v2 requires too much configurations
- uses: actions/checkout@v1

- uses: jgierer12/npm-auth-gpr@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Dependencies
run: |
yarn config set cache-folder /tmp/.yarn-cache-1000/v6
Expand Down

0 comments on commit 8a94740

Please sign in to comment.