diff --git a/.github/workflows/auto-changelog.yml b/.github/workflows/auto-changelog.yml index 65d58fb..c1945ad 100644 --- a/.github/workflows/auto-changelog.yml +++ b/.github/workflows/auto-changelog.yml @@ -41,9 +41,7 @@ jobs: node-version: '20.x' cache: yarn - - name: Create .env - run: | - echo "NPM_TOKEN=${{ secrets.NPM_TOKEN }}" > .env + - name: Install dependencies run: | @@ -53,8 +51,7 @@ jobs: - name: post-install run: sh .script/post-install.sh - - name: Remove .env - run: rm .env + - name: Configure Git run: | diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3149566..e7dc84b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -32,10 +32,6 @@ jobs: node-version: '20.x' cache: yarn - - name: Create .env - run: | - echo "NPM_TOKEN=${{ secrets.NPM_TOKEN }}" > .env - - name: Install dependencies run: | sh .script/pre-install.sh @@ -87,6 +83,3 @@ jobs: - name: post-install run: sh .script/post-install.sh - - - name: Remove .env - run: rm .env diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 106d894..7a508cb 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -77,6 +77,7 @@ jobs: node-version: '20.x' registry-url: 'https://npm.pkg.github.com' scope: '@ummgoban' + token: ${{ secrets.NPM_TOKEN }} - name: Enable Corepack and Set yarn Version run: | @@ -89,10 +90,6 @@ jobs: node-version: '20.x' cache: yarn - - name: Create .env - run: | - echo "NPM_TOKEN=${{ secrets.NPM_TOKEN }}" > .env - - name: Install dependencies run: | sh .script/pre-install.sh @@ -148,6 +145,3 @@ jobs: - name: post-install run: sh .script/post-install.sh - - - name: Remove .env - run: rm .env