From f69da087639bf94f19bdb97143ea5754cc806179 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Fri, 12 Aug 2022 00:00:02 -0400 Subject: [PATCH] chore: improve caching and token handling --- .github/workflows/publish-auto.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-auto.yml b/.github/workflows/publish-auto.yml index 68c53afc9..938763aaa 100644 --- a/.github/workflows/publish-auto.yml +++ b/.github/workflows/publish-auto.yml @@ -15,13 +15,14 @@ jobs: steps: - uses: actions/checkout@v3 with: - # Fetch all history for all tags and branches fetch-depth: 0 - uses: actions/setup-node@v3 with: registry-url: "https://registry.npmjs.org" cache: "yarn" + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install Node dependencies run: yarn --frozen-lockfile @@ -29,6 +30,4 @@ jobs: - name: Create release run: npm run release env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}