Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 committed May 31, 2024
1 parent e76fe1c commit e2c98e1
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit e2c98e1

Please sign in to comment.