diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93e4d76a7..e859e4d32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,23 +38,25 @@ jobs: ignore-case: true omit-heading: true - run: "cat ${{ steps.extract-changelog.outputs.output-file }}" - - name: Release - uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') - with: - body_path: ${{ steps.extract-changelog.outputs.output-file }} - repository: toss/es-toolkit - generate_release_notes: false - token: ${{ secrets.TOSS_GITHUB_TOKEN }} + # - name: Release + # uses: softprops/action-gh-release@v2 + # if: startsWith(github.ref, 'refs/tags/') + # with: + # body_path: ${{ steps.extract-changelog.outputs.output-file }} + # repository: toss/es-toolkit + # generate_release_notes: false + # token: ${{ secrets.TOSS_GITHUB_TOKEN }} - if: | github.event_name == 'push' run: | set -ex - npm config set //registry.npmjs.org/:_authToken "${{ secrets.NPM_TOKEN }}" + npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN" npm whoami if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then npm publish --provenance --access public *.tgz else npm publish --provenance --access public --tag dev *.tgz fi + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} working-directory: ${{ github.workspace }}/out/