From 8a94740535d0102b713e1bfc8a24b9e491dcdf39 Mon Sep 17 00:00:00 2001 From: Septs Date: Sun, 19 Jul 2020 10:11:22 +0800 Subject: [PATCH] chore: automate publish to github package --- .github/workflows/E2E.yml | 8 ++++++-- .github/workflows/workflow.yml | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/E2E.yml b/.github/workflows/E2E.yml index e239516f2d0c..96a0919bfc05 100644 --- a/.github/workflows/E2E.yml +++ b/.github/workflows/E2E.yml @@ -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: @@ -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 diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index df1d94b77875..51aa823ac418 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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