diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d0ad1d..6e6872b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,8 @@ jobs: }') token=$(echo $response | jq -r '.token') echo "NPM_TOKEN=$token" >> $GITHUB_ENV + - name: Output variable + run: echo "::set-output name=npmtoken::$NPM_TOKEN" release: name: Release @@ -64,8 +66,11 @@ jobs: - name: Install dependencies run: npm clean-install - run: npm run build + - run: | + echo "local npm token: ${{needs.localNPMRegistry.outputs.npmtoken}}" + echo "NPM_TOKEN=${{needs.localNPMRegistry.outputs.npmtoken}}" >> $GITHUB_ENV - name: Release run: npx semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{env.NPM_TOKEN}} + NPM_TOKEN: ${{needs.localNPMRegistry.outputs.npmtoken}}