From f69da087639bf94f19bdb97143ea5754cc806179 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Fri, 12 Aug 2022 00:00:02 -0400 Subject: [PATCH 1/4] 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 }} From e2fd2cdee5e3b20ff6882b71ce817cd1eb8e84d1 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Fri, 12 Aug 2022 00:02:59 -0400 Subject: [PATCH 2/4] set NPM_TOKEN --- .github/workflows/publish-auto.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-auto.yml b/.github/workflows/publish-auto.yml index 938763aaa..6389cf990 100644 --- a/.github/workflows/publish-auto.yml +++ b/.github/workflows/publish-auto.yml @@ -30,4 +30,5 @@ jobs: - name: Create release run: npm run release env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 0bb3b660c8f3b9e4de96b118e7c16151178dac08 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Tue, 20 Sep 2022 22:46:57 -0400 Subject: [PATCH 3/4] chore: try NODE_AUTH_TOKEN --- .github/workflows/publish-auto.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-auto.yml b/.github/workflows/publish-auto.yml index 6389cf990..aa0a07925 100644 --- a/.github/workflows/publish-auto.yml +++ b/.github/workflows/publish-auto.yml @@ -22,7 +22,7 @@ jobs: registry-url: "https://registry.npmjs.org" cache: "yarn" env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install Node dependencies run: yarn --frozen-lockfile @@ -30,5 +30,5 @@ 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 }} From c55cbf2da419846edfd1d81ea99f0c2022dc9803 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Tue, 20 Sep 2022 22:51:33 -0400 Subject: [PATCH 4/4] chore: use NODE_AUTH_TOKEN --- .github/workflows/publish-auto.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-auto.yml b/.github/workflows/publish-auto.yml index aa0a07925..16ad0ec4c 100644 --- a/.github/workflows/publish-auto.yml +++ b/.github/workflows/publish-auto.yml @@ -22,7 +22,7 @@ jobs: registry-url: "https://registry.npmjs.org" cache: "yarn" env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install Node dependencies run: yarn --frozen-lockfile @@ -30,5 +30,6 @@ 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 }}