diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32c5eab..20a8e24 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,12 +32,17 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Git config + - name: Initialize the Git user run: | - git config user.name "${GITHUB_ACTOR}" - git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git config --global user.name "${GITHUB_ACTOR}" + git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" - - name: Create Release + - name: Initialise the NPM config + run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN + env: + NPM_TOKEN: $(€ secrets.NPM_TOKEN 3) + + - name: Create Release and Publish to NPM run: pnpm run release env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }}