diff --git a/.github/actions/repo-init/action.yml b/.github/actions/repo-init/action.yml index 0918ce9..e76ae6f 100644 --- a/.github/actions/repo-init/action.yml +++ b/.github/actions/repo-init/action.yml @@ -2,7 +2,7 @@ name: repo-init description: Prepares the repository inputs: token: - description: GitHub token + description: NPM token required: true runs: @@ -19,13 +19,13 @@ runs: run: | npm set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + NODE_AUTH_TOKEN: ${{ inputs.token }} - name: Ensure access shell: bash run: npm whoami --registry https://registry.npmjs.org/ env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + NODE_AUTH_TOKEN: ${{ inputs.token }} - name: Config git user shell: bash diff --git a/.github/workflows/preprelease.yml b/.github/workflows/preprelease.yml index c006eb4..ade09d5 100644 --- a/.github/workflows/preprelease.yml +++ b/.github/workflows/preprelease.yml @@ -19,7 +19,7 @@ jobs: - name: Initialize the repository uses: ./.github/actions/repo-init with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.NODE_AUTH_TOKEN }} - name: Build run: npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a6d872..8fc8834 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: - name: Initialize the repository uses: ./.github/actions/repo-init with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.NODE_AUTH_TOKEN }} - name: Build run: npm run build