From 199fc120ca728531c852e795cc60dbbfd79edf30 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 15 Jun 2020 11:16:43 -0500 Subject: [PATCH] github: remove private token We should no longer need this since @pybricks packages are now public --- .github/workflows/build-dev.yml | 11 ++++++----- .github/workflows/test-pull-request.yml | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index e8eaadf6..881567c5 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -9,13 +9,14 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/setup-node@v1 + with: + node-version: '10.x' + registry-url: 'https://npm.pkg.github.com' - uses: actions/checkout@v2 - - name: Install + - run: yarn install env: - TOKEN: ${{ secrets.privateToken }} - run: | - echo "//npm.pkg.github.com/:_authToken=$TOKEN" >> .npmrc - yarn install + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build if: ${{ success() }} run: yarn build diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 2f9b447d..b4059923 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -13,13 +13,14 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/setup-node@v1 + with: + node-version: '10.x' + registry-url: 'https://npm.pkg.github.com' - uses: actions/checkout@v2 - - name: Run yarn install - run: | - echo "//npm.pkg.github.com/:_authToken=$TOKEN" >> $HOME/.npmrc - yarn install + - run: yarn install env: - TOKEN: ${{ secrets.privateToken }} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | yarn lint git diff --exit-code